Skip to content

Commit a04bb2a

Browse files
zackeesclaude
andauthored
feat(test-matrix): #224 add SuperMini, nice!nano, nRFMicro nRF52840 boards (#225)
Mirrors FastLED PR FastLED/FastLED#2445 by extending fbuild's regression matrix to cover the three pdcook/nRFMicro-Arduino-Core community boards. Each test platform reuses the nrf52840_dk_adafruit PlatformIO board (no first-party board package exists for these community variants) and sets the matching -DTARGET_* build flag so the FastLED variant code path is exercised in CI. Adds three workflows and Nordic NRF52 README badges. Closes #224 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 58d1b1d commit a04bb2a

17 files changed

Lines changed: 146 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build nice!nano nRF52840
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
uses: ./.github/workflows/template_build.yml
12+
with:
13+
workflow-name: "nice!nano nRF52840"
14+
test-dir: "tests/platform/nice_nano_nrf52840"
15+
env-name: "nice_nano_nrf52840"
16+
firmware-ext: "hex"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build nRFMicro nRF52840
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
uses: ./.github/workflows/template_build.yml
12+
with:
13+
workflow-name: "nRFMicro nRF52840"
14+
test-dir: "tests/platform/nrfmicro_nrf52840"
15+
env-name: "nrfmicro_nrf52840"
16+
firmware-ext: "hex"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build SuperMini nRF52840
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
uses: ./.github/workflows/template_build.yml
12+
with:
13+
workflow-name: "SuperMini nRF52840"
14+
test-dir: "tests/platform/supermini_nrf52840"
15+
env-name: "supermini_nrf52840"
16+
firmware-ext: "hex"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@
9292

9393
### Nordic NRF52
9494
[![Build nRF52840 DK](https://github.com/fastled/fbuild/actions/workflows/build-nrf52840_dk.yml/badge.svg)](https://github.com/fastled/fbuild/actions/workflows/build-nrf52840_dk.yml)
95+
[![Build SuperMini nRF52840](https://github.com/fastled/fbuild/actions/workflows/build-supermini_nrf52840.yml/badge.svg)](https://github.com/fastled/fbuild/actions/workflows/build-supermini_nrf52840.yml)
96+
[![Build nice!nano nRF52840](https://github.com/fastled/fbuild/actions/workflows/build-nice_nano_nrf52840.yml/badge.svg)](https://github.com/fastled/fbuild/actions/workflows/build-nice_nano_nrf52840.yml)
97+
[![Build nRFMicro nRF52840](https://github.com/fastled/fbuild/actions/workflows/build-nrfmicro_nrf52840.yml/badge.svg)](https://github.com/fastled/fbuild/actions/workflows/build-nrfmicro_nrf52840.yml)
9598

9699
### Apollo3
97100
[![Build Apollo3 RedBoard](https://github.com/fastled/fbuild/actions/workflows/build-apollo3_red.yml/badge.svg)](https://github.com/fastled/fbuild/actions/workflows/build-apollo3_red.yml)

tests/platform/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ PlatformIO-compatible test projects for each supported hardware platform. Each s
2929
| `mgm240/` | EFR32MG24 | ARM Cortex-M33 | Arduino |
3030
| `nano_every/` | ATmega4809 | MegaAVR | Arduino |
3131
| `nrf52840_dk/` | nRF52840 | ARM Cortex-M4F | Arduino |
32+
| `supermini_nrf52840/` | nRF52840 | ARM Cortex-M4F | Arduino |
33+
| `nice_nano_nrf52840/` | nRF52840 | ARM Cortex-M4F | Arduino |
34+
| `nrfmicro_nrf52840/` | nRF52840 | ARM Cortex-M4F | Arduino |
3235
| `nucleo_f429zi/` | STM32F429ZI | ARM Cortex-M4F | Arduino |
3336
| `nucleo_f439zi/` | STM32F439ZI | ARM Cortex-M4F | Arduino |
3437
| `rp2040/` | RP2040 | ARM Cortex-M0+ | Arduino |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# nice!nano nRF52840 Test Project
2+
3+
Minimal blink sketch for the nice!nano v2 / ProMicro nRF52840 community board build
4+
validation.
5+
6+
The board reuses the `nrf52840_dk_adafruit` PlatformIO board because no first-party
7+
PlatformIO board package exists for this community variant. The
8+
`-DTARGET_NICE_NANO_V2` build flag mirrors the define used by FastLED's FastPin
9+
variant block (FastLED/FastLED#2445) so the variant code path is exercised in CI.
10+
11+
Variant header: https://github.com/pdcook/nRFMicro-Arduino-Core/blob/main/variants/nice_nano/variant.h
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[env:nice_nano_nrf52840]
2+
platform = nordicnrf52
3+
board = nrf52840_dk_adafruit
4+
framework = arduino
5+
build_flags = -DTARGET_NICE_NANO_V2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# src
2+
3+
Arduino sketch source for the nice!nano nRF52840 test project.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <Arduino.h>
2+
3+
void setup() {
4+
pinMode(LED_BUILTIN, OUTPUT);
5+
}
6+
7+
void loop() {
8+
digitalWrite(LED_BUILTIN, HIGH);
9+
delay(500);
10+
digitalWrite(LED_BUILTIN, LOW);
11+
delay(500);
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# nRFMicro nRF52840 Test Project
2+
3+
Minimal blink sketch for the nRFMicro community board build validation.
4+
5+
The board reuses the `nrf52840_dk_adafruit` PlatformIO board because no first-party
6+
PlatformIO board package exists for this community variant. The `-DTARGET_NRFMICRO`
7+
build flag mirrors the define used by FastLED's FastPin variant block
8+
(FastLED/FastLED#2445) so the variant code path is exercised in CI.
9+
10+
Variant header: https://github.com/pdcook/nRFMicro-Arduino-Core/blob/main/variants/nRFMicro/variant.h

0 commit comments

Comments
 (0)