Repository navigation
Closed
Description
Background
PR #2445 (closes #2422) added FastPin variant blocks for three community nRF52840 boards exposed by the pdcook/nRFMicro-Arduino-Core BSP:
TARGET_SUPERMINI_NRF52840→ SuperMini nRF52840TARGET_NICE_NANO_V2→ nice!nano v2 (ProMicro footprint)TARGET_NRFMICRO→ nRFMicro
To match how XIAO nRF52840 is currently handled, several pins on the new variants were declared with _FL_DEF_INVALID_PIN rather than _FL_DEFPIN. This issue tracks revisiting those decisions once we have hardware feedback from the community.
Currently invalidated pins (_FL_DEF_INVALID_PIN)
In src/platforms/arm/nrf52/fastpin_arm_nrf52_variants.h:
SuperMini nRF52840 / nice!nano v2 (same pinout)
| Arduino pin | nRF pin | Reason invalidated |
|---|---|---|
| D10 | P0.09 | NFC1 (NFC pin — needs CONFIG_NFCT_PINS_AS_GPIOS or BSP equivalent to enable as GPIO) |
| D11 | P0.10 | NFC2 (same as above) |
| D21 | P0.13 | EXT_VCC enable (drives the onboard 3V3 regulator; pulling it low cuts power) |
| D22 | P0.15 | USR LED (onboard, but still drivable — invalidating mainly to discourage accidental use) |
nRFMicro
| Arduino pin | nRF pin | Reason invalidated |
|---|---|---|
| D7 | P0.09 | NFC1 |
| D8 | P0.10 | NFC2 |
| D25 | P0.04 | VBAT analog sense |
| D26 | P1.09 | EXT_VCC enable |
| D27 | P1.10 | USR LED |
Questions to resolve
- NFC pins (P0.09 / P0.10). Other nRF52840 BSPs (Adafruit Feather, XIAO) also leave these as
_FL_DEF_INVALID_PIN, but the upstream Adafruit nRF52 core does support repurposing them as GPIO viaNFC_PINS_AS_GPIO()at boot. Should we expose aFASTLED_NRF52_ENABLE_NFC_GPIO(or similar) compile-time switch that re-enables them? This would benefit users wiring LEDs to D10/D11. - USR LED pins (P0.15, P1.10). These are physically driveable; the only reason to invalidate is to keep
FastLED.addLeds<..., D22>from accidentally fighting with the BSP'sdigitalWrite(LED_BUILTIN, ...). Some users want the LED row addressable. Worth aFASTLED_NRF52_ALLOW_USR_LED_PINopt-in? - EXT_VCC enable pins (P0.13 SuperMini/nice!nano, P1.09 nRFMicro). Almost certainly should stay invalid — toggling them mid-
show()would brown out the regulator and the strip. Keep as-is, but document. - VBAT (nRFMicro D25 / P0.04). Pure analog input on most BSPs. Keep invalid.
- General consistency. XIAO nRF52840 currently also marks USR LED pins (
P0.26,P0.06,P0.30) invalid. Whatever decision we land on for SuperMini should probably apply uniformly across XIAO too.
Proposed next steps
- Wait for community feedback on PR feat(nrf52): add SuperMini, nice!nano, nRFMicro nRF52840 variants (#2422) #2445 (in particular from @marlosdm who reported #warning "Unknown nRF52840 variant" #2422) confirming which pins they actually try to use for FastLED output
- If multiple users want NFC/USR LED pins enabled, introduce a uniform opt-in macro (
FASTLED_NRF52_ALLOW_NFC_PINS,FASTLED_NRF52_ALLOW_USR_LED) and apply it across SuperMini, nice!nano, nRFMicro, and XIAO blocks - Otherwise document the constraints in
docs/PLATFORMS.md(or wherever nRF52 platform notes live) and close
cc @zackees
Metadata
Metadata
Assignees
Labels
No labels
Activity
zackees commentedon May 10, 2026
Implemented in #2447.
Added two opt-in compile-time switches to
src/platforms/arm/nrf52/fastpin_arm_nrf52_variants.h:FASTLED_NRF52_ALLOW_NFC_PINS— re-enablesP0.09/P0.10as valid FastLED output pins on SuperMini, nice!nano v2, nRFMicro, XIAO nRF52840, and XIAO nRF52840 Sense. Documented as necessary-but-not-sufficient: users must also setCONFIG_NFCT_PINS_AS_GPIOS=1in their BSP, or callNFC_PINS_AS_GPIO()at boot (Adafruit nRF52 core).FASTLED_NRF52_ALLOW_USR_LED— re-enables on-board user-LED pins (P0.15SuperMini/nice!nano v2,P1.10nRFMicro, plus the three XIAO RGB LED pins atP0.26/P0.06/P0.30).Per the decision matrix above:
EXT_VCCenable pins (P0.13SuperMini/nice!nano v2,P1.09nRFMicro) stay invalid unconditionally.P0.04nRFMicro, plus the XIAOREAD_BAT/VBATlines) stay invalid unconditionally.Default behaviour is unchanged — without either macro defined the same set of pins remains invalid as before. README updated with both macros documented under the existing "Optional feature defines" section.
feat(nrf52): add FASTLED_NRF52_ALLOW_NFC_PINS / _USR_LED opt-ins (#2446…