Skip to content

Commit a83161e

Browse files
committed
v1.0.2 - added LED_BLUE for bluefruit compatibility
1 parent 9762d18 commit a83161e

7 files changed

Lines changed: 71 additions & 59 deletions

File tree

19.1 MB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nrfmicro-arduino",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Arduino core for nRFMicro-compatible boards",
55
"keywords": [
66
"arduino",

package_nRFMicro_index.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,52 @@
9999

100100
}
101101

102+
]
103+
},
104+
{
105+
"name": "nRFMicro-like Boards",
106+
"architecture": "nrf52",
107+
"version": "1.0.2",
108+
"category": "Contributed",
109+
"help": {
110+
"online": ""
111+
},
112+
"url": "https://raw.githubusercontent.com/pdcook/nRFMicro-Arduino-Core/main/nRFMicro-Arduino-Core-1.0.2.tar.bz2",
113+
"archiveFileName": "nRFMicro-Arduino-Core-1.0.2.tar.bz2",
114+
"checksum": "SHA-256:44d35927a60cb8a571a210ddeb9d2c5da4957ead5b143623685a8787fa1d04c9",
115+
"size": "20050973",
116+
"boards": [{ "name": "nRFMicro" }, { "name": "SuperMini nRF52840" }, {"name": "nice!nano v2"}],
117+
"toolsDependencies": [
118+
{
119+
120+
"packager": "Seeeduino",
121+
122+
"name": "arm-none-eabi-gcc",
123+
124+
"version": "9-2019q4"
125+
126+
},
127+
128+
{
129+
130+
"packager": "Seeeduino",
131+
132+
"name": "nrfjprog",
133+
134+
"version": "9.4.0"
135+
136+
},
137+
138+
{
139+
140+
"packager": "Seeeduino",
141+
142+
"name": "CMSIS",
143+
144+
"version": "5.7.0"
145+
146+
}
147+
102148
]
103149
}
104150
],

tools/makeboards.py

Lines changed: 21 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -141,64 +141,27 @@ def make_board(mcu, name, variant, vendor_name, product_name, boarddefine, vid,
141141
# ------------------------------
142142
build_global_menu()
143143

144-
# ------------------------------
145-
# Adafruit Boards
146-
# ------------------------------
147-
148-
adafruit_boards_list = [
149-
[52832, "feather52832", "feather_nrf52832", "Adafruit", "Feather nRF52832", "NRF52832_FEATHER",
150-
"0x239A", []],
151-
152-
[52840, "feather52840", "feather_nrf52840_express", "Adafruit", "Feather nRF52840 Express", "NRF52840_FEATHER",
153-
"0x239A", ["0x8029", "0x0029", "0x002A", "0x802A"]],
154-
155-
[52840, "feather52840sense", "feather_nrf52840_sense", "Adafruit", "Feather nRF52840 Sense", "NRF52840_FEATHER_SENSE",
156-
"0x239A", ["0x8087", "0x0087", "0x0088", "0x8088"]],
157-
158-
[52840, "feather_nrf52840_sense_tft", "feather_nrf52840_sense_tft", "Adafruit", "Feather nRF52840 Sense TFT", "NRF52840_FEATHER_SENSE_TFT",
159-
"0x239A", ["0x8087", "0x0087", "0x0088", "0x8088"]], # TODO shared VID with sense for now
160-
161-
[52840, "itsybitsy52840", "itsybitsy_nrf52840_express", "Adafruit", "ItsyBitsy nRF52840 Express", "NRF52840_ITSYBITSY -DARDUINO_NRF52_ITSYBITSY",
162-
"0x239A", ["0x8051", "0x0051", "0x0052", "0x8052"]],
163-
164-
[52840, "cplaynrf52840", "circuitplayground_nrf52840", "Adafruit", "Circuit Playground Bluefruit", "NRF52840_CIRCUITPLAY",
165-
"0x239A", ["0x8045", "0x0045", "0x8046"]],
166-
167-
[52840, "cluenrf52840", "clue_nrf52840", "Adafruit", "CLUE", "NRF52840_CLUE",
168-
"0x239A", ["0x8071", "0x0071", "0x8072"]],
169-
170-
[52840, "ledglasses_nrf52840", "ledglasses_nrf52840", "Adafruit", "LED Glasses Driver nRF52840", "NRF52840_LED_GLASSES",
171-
"0x239A", ["0x810D", "0x010D", "0x810E"]],
172-
173-
[52840, "mdbt50qrx", "raytac_mdbt50q_rx", "Raytac", "nRF52840 Dongle", "MDBT50Q_RX",
174-
"0x239A", ["0x810B", "0x010B", "0x810C"]],
175-
176-
[52840, "metro52840", "metro_nrf52840_express", "Adafruit", "Metro nRF52840 Express", "NRF52840_METRO",
177-
"0x239A", ["0x803F", "0x003F", "0x0040", "0x8040"]],
178-
179-
# [52833, "feather52833", "feather_nrf52833_express", "Adafruit", "Feather nRF52833 Express", "NRF52833_FEATHER",
180-
# "0x239A", ["0x8029", "0x0029", "0x002A", "0x802A"]],
181-
]
182-
183-
for b in adafruit_boards_list:
184-
make_board(*b)
185-
186-
# ------------------------------
187-
# 3rd Party Boards
188-
# ------------------------------
189-
190-
print()
191-
print()
192-
print("# -------------------------------------------------------")
193-
print("# Boards that aren't made by Adafruit")
194-
print("# and are not officially supported")
195-
print("# -------------------------------------------------------")
196-
197-
thirdparty_boards_list = [
198-
[52840, "pca10056", "pca10056", "Nordic", "nRF52840 DK", "NRF52840_PCA10056", "0x239A", ["0x80DA", "0x00DA"]],
199-
[52833, "pca10100", "pca10100", "Nordic", "nRF52833 DK", "NRF52833_PCA10100", "0x239A", ["0x80D8", "0x00D8"]],
200-
[52840, "particle_xenon", "particle_xenon", "Particle", "Xenon", "PARTICLE_XENON", "0x239A", ["0x80DA", "0x00DA"]],
144+
boards_list = [
145+
146+
[
147+
52840, "supermini",
148+
"SuperMini_nRF52840", "Generic",
149+
"SuperMini nRF52840", "NRF52840_SUPERMINI",
150+
"0x1209", ["0x5285","0x5284","0x5284","0x5284"]
151+
],
152+
[
153+
52840, "nrfmicro",
154+
"nRFMicro", "joric",
155+
"nRFMicro", "NRF52840_NRFMICRO",
156+
"0x1209", ["0x5285","0x5284","0x5284","0x5284"]
157+
],
158+
[
159+
52840, "nicenanov2",
160+
"nice_nano_v2", "nice!",
161+
"nice!nano v2", "NRF52840_NICENANO_V2",
162+
"0x239A", ["0x00B4","0x00B3","0x00B3","0x00B3"]
163+
],
201164
]
202165

203-
for b in thirdparty_boards_list:
166+
for b in boards_list:
204167
make_board(*b)

variants/SuperMini_nRF52840/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extern "C"
4040
#define LED_PWR (PINS_COUNT) // no LED_PWR
4141
#define PIN_NEOPIXEL (PINS_COUNT) // no neopixel
4242
#define NEOPIXEL_NUM 0
43+
#define LED_BLUE PIN_LED // required by bluefruit library
4344

4445
#define LED_BUILTIN PIN_LED
4546

variants/nRFMicro/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extern "C"
3535
#define LED_PWR (PINS_COUNT) // no LED_PWR
3636
#define PIN_NEOPIXEL (PINS_COUNT) // no neopixel
3737
#define NEOPIXEL_NUM 0
38+
#define LED_BLUE PIN_LED // required by bluefruit library
3839

3940
#define LED_BUILTIN PIN_LED
4041

variants/nice_nano/variant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extern "C"
4040
#define LED_PWR (PINS_COUNT) // no LED_PWR
4141
#define PIN_NEOPIXEL (PINS_COUNT) // no neopixel
4242
#define NEOPIXEL_NUM 0
43+
#define LED_BLUE PIN_LED // required by bluefruit library
4344

4445
#define LED_BUILTIN PIN_LED
4546

0 commit comments

Comments
 (0)