Skip to content

Commit c84538a

Browse files
authored
Merge branch 'master' into Serial2
2 parents b753287 + cc69ecc commit c84538a

File tree

293 files changed

+66755
-23991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+66755
-23991
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: "[Bug]"
4+
title: ''
55
labels: Bug
66
assignees: ''
77

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: "[Feature]"
4+
title: ''
55
labels: Feature
66
assignees: ''
77

.github/ISSUE_TEMPLATE/questions-please-use-our-forum-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Questions please use our forum support
33
about: Don't open issue, post your question at forums.adafruit.com
44
title: ''
5-
labels: ''
5+
labels: wontfix
66
assignees: ''
77

88
---

.github/workflows/githubci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
arduino-platform: ['feather52832', 'feather52840', 'cplaynrf52840', 'itsybitsy52840', 'cluenrf52840' ]
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Setup Python
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: '3.x'
19+
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
23+
- name: Checkout submodules
24+
shell: bash
25+
run: |
26+
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
27+
git submodule sync --recursive
28+
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive
29+
30+
- name: Install Arduino CLI and Tools
31+
run: |
32+
pip3 install adafruit-nrfutil
33+
# make all our directories we need for files and libraries
34+
mkdir $HOME/.arduino15
35+
mkdir $HOME/.arduino15/packages
36+
mkdir $HOME/Arduino
37+
mkdir $HOME/Arduino/libraries
38+
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
39+
echo "::add-path::$GITHUB_WORKSPACE/bin"
40+
41+
- name: Install BSP and Libraries
42+
env:
43+
BSP_URL: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
44+
BSP_PATH: .arduino15/packages/adafruit/hardware/nrf52
45+
run: |
46+
arduino-cli config init
47+
arduino-cli core update-index
48+
arduino-cli core update-index --additional-urls $BSP_URL
49+
arduino-cli core install adafruit:nrf52 --additional-urls $BSP_URL
50+
# Repalce release BSP with our code
51+
BSP_VERSION=`eval ls $HOME/$BSP_PATH`
52+
rm -r $HOME/$BSP_PATH/*
53+
ln -s $GITHUB_WORKSPACE $HOME/$BSP_PATH/$BSP_VERSION
54+
# Install library dependency
55+
arduino-cli lib install "Adafruit GFX Library" "Adafruit SSD1306" "Adafruit ILI9341" "Adafruit HX8357 Library" "Adafruit EPD"
56+
arduino-cli lib install "Adafruit Circuit Playground" "Adafruit NeoPixel" "Adafruit NeoMatrix" "MIDI Library" "Firmata"
57+
58+
- name: Build examples
59+
run: python3 tools/build_all.py ${{ matrix.arduino-platform }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
*.o
33
*.obj
44

5+
# Visual Studio Code
6+
**/.vscode/
7+
58
# Executables
69
*.out
710
*.app

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "cores/nRF5/TinyUSB/Adafruit_TinyUSB_ArduinoCore"]
2+
path = cores/nRF5/TinyUSB/Adafruit_TinyUSB_ArduinoCore
3+
url = https://github.com/adafruit/Adafruit_TinyUSB_ArduinoCore.git

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.travis.yml.bck

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
sudo: required
2+
language: c
3+
dist: xenial
4+
git:
5+
depth: false
6+
quiet: true
7+
8+
env:
9+
global:
10+
- BSP_PATH="$HOME/.arduino15/packages/adafruit/hardware/nrf52"
11+
jobs:
12+
# empty env required, else allow_failures will SILENTY IGNORE matching against env...
13+
-
14+
15+
jobs:
16+
fast_finish: true
17+
include:
18+
- name: "Feather nRF52840"
19+
env: VARIANT="feather52840"
20+
- name: "Feather nRF52840 (All warnings)"
21+
env: ALL_WARNINGS="true" VARIANT="feather52840"
22+
- name: "Circuit Playground nRF52840"
23+
env: VARIANT="cplaynrf52840"
24+
- name: "Circuit Playground nRF52840 (All warnings)"
25+
env: ALL_WARNINGS="true" VARIANT="cplaynrf52840"
26+
- name: "Feather nRF52832"
27+
env: VARIANT="feather52832"
28+
- name: "Feather nRF52832 (All warnings)"
29+
env: ALL_WARNINGS="true" VARIANT="feather52832"
30+
- name: "ItsyBitsy nRF52840 Express"
31+
env: VARIANT="itsybitsy52840"
32+
- name: "Clue nRF52840"
33+
env: VARIANT="cluenrf52840"
34+
allow_failures:
35+
- env: ALL_WARNINGS="true" VARIANT="feather52840"
36+
- env: ALL_WARNINGS="true" VARIANT="cplaynrf52840"
37+
- env: ALL_WARNINGS="true" VARIANT="feather52832"
38+
39+
addons:
40+
apt:
41+
packages:
42+
- python3
43+
- python3-pip
44+
- python3-setuptools
45+
snaps:
46+
- name: ubuntu-make
47+
confinement: classic
48+
49+
install:
50+
# Filter only mDNS / Bonjour traffic
51+
- sudo iptables --insert INPUT --jump DROP --protocol udp --dport 5353 -m comment --comment "silently drop all 5353/udp input"
52+
- sudo iptables --insert INPUT --jump DROP --destination 224.0.0.251 -m comment --comment "silently drop all mDNS ipv4 broadcast"
53+
# Install the nRF52 support files for arduino
54+
- pip3 install --user adafruit-nrfutil
55+
- umake electronics arduino $HOME/arduino_ide
56+
- export PATH=$HOME/arduino_ide:$PATH
57+
- arduino --pref "boardsmanager.additional.urls=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" --save-prefs
58+
# Install BSP for tools, then remove and create symlink the git code
59+
- arduino --install-boards adafruit:nrf52
60+
- BSP_VERSION=`eval ls $BSP_PATH`
61+
- rm -r $BSP_PATH/*
62+
- ln -s $TRAVIS_BUILD_DIR $BSP_PATH/$BSP_VERSION
63+
- arduino --install-library "Adafruit NeoPixel","Adafruit NeoMatrix","Adafruit GFX Library","Adafruit SSD1306","MIDI Library","Adafruit ILI9341","Adafruit HX8357 Library","Adafruit Circuit Playground"
64+
65+
before_script:
66+
67+
script:
68+
- python3 tools/build_all_travis.py

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# Arduino Core for Adafruit Bluefruit nRF52 Boards
22

3+
[![Build Status](https://github.com/adafruit/Adafruit_nRF52_Arduino/workflows/Build/badge.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/actions)
4+
35
This repository contains the Arduino BSP for Adafruit Bluefruit nRF52 series:
46

7+
- Adafruit CLUE nRF52840
58
- [Adafruit Feather nRF52832](https://www.adafruit.com/product/3406)
69
- [Adafruit Feather nRF52840 Express](https://www.adafruit.com/product/4062)
10+
- [Adafruit Circuit Playground Bluefruit](https://www.adafruit.com/product/4333)
11+
- Adafruit ItsyBitsy nRF52840
712
- Adafruit Metro nRF52840 Express
813

914
Following boards are also included but are not officially supported:
@@ -36,7 +41,7 @@ There are two methods that you can use to install this BSP. We highly recommend
3641
* Linux : `~/Arduino`
3742
* Windows: `~/Documents/Arduino`
3843
4. Create a folder named `hardware/Adafruit`, if it does not exist, and change directories to it
39-
5. Clone this repo: `git clone https://github.com/adafruit/Adafruit_nRF52_Arduino.git`
44+
5. Clone this repo & its submodules: `git clone --recurse-submodules https://github.com/adafruit/Adafruit_nRF52_Arduino.git`
4045
6. Restart the Arduino IDE
4146
7. Once the BSP is installed, select 'Adafruit Bluefruit nRF52 Feather' from the Tools -> Board menu, which will update your system config to use the right compiler and settings for the nRF52.
4247

@@ -47,9 +52,9 @@ There are two methods that you can use to install this BSP. We highly recommend
4752
- For Windows and macOS, pre-built executable binaries are included in the BSP at `tools/adafruit-nrfutil/`. It should work out of the box.
4853
- Linux user need to run follow command to install it from PyPi
4954

50-
```
51-
$ pip3 install adafruit-nrfutil --user
52-
```
55+
```
56+
$ pip3 install adafruit-nrfutil --user
57+
```
5358

5459
### Drivers
5560

@@ -74,7 +79,7 @@ To burn the bootloader from within the Arduino IDE, you will need the following
7479
on your system and available in the system path:
7580

7681
- Segger [JLink Software and Documentation Pack](https://www.segger.com/downloads/jlink)
77-
- Nordic [nRF5x Command Line Tools](http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fnrf5x_command_line_tools%2Fnrf5x_installation.html)
82+
- Nordic [nRF5x Command Line Tools](https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools)
7883

7984
Check to make sure you can run `nrfjprog` from your terminal/command prompt
8085

0 commit comments

Comments
 (0)