You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't use on-board LED on Adafruit QT Py SAMD21 #1354
There was another Adafruit board, I think the Bluefruit, and to specify the pin for the onboard pixels, instead of 8 or 11, etc, it was PIN_NEOPIXEL. You might give that a try.
I actually tried it right before posting this issue and it returns the same error. I checked the variant.h file for the board since I know there are usually pin definitions in there and it's defined as pin 11.
Tracked in FastLED/fbuild#386 for SAMD21 / SAMD51 fbuild platform/build support validation.
That fbuild issue is scoped to board metadata, toolchain/backend support, and FastLED smoke-build evidence. Any remaining FastLED source/platform-code blocker should stay linked from both sides.
This is FastLED-side, not a build/toolchain issue. The static_assert(validpin(), "Invalid pin specified") you hit is from src/platforms/arm/d21/fastpin_arm_d21.h — that header maps Arduino pin numbers to SAMD21 PORT/pin bits, and on the QT Py M0 pin 11 (the on-board NeoPixel) is not in the validpin table. Adding a _FL_DEFPIN(11, ...) entry for the QT Py M0's PA10 (or whatever the actual NeoPixel port pin is on the qtpy_m0 variant) in d21 would resolve this. The build tool side is green.
Activity
marmilicious commentedon Jan 21, 2022
There was another Adafruit board, I think the Bluefruit, and to specify the pin for the onboard pixels, instead of 8 or 11, etc, it was PIN_NEOPIXEL. You might give that a try.
thnikk commentedon Jan 21, 2022
I actually tried it right before posting this issue and it returns the same error. I checked the variant.h file for the board since I know there are usually pin definitions in there and it's defined as pin 11.
Spegs21 commentedon Feb 7, 2022
@thnikk The pin definition is missing in fastpin_arm_d21.h:
FastLED/src/platforms/arm/d21/fastpin_arm_d21.h
Line 236 in 4d73cdd
You need to add
_FL_DEEPIN(11,18,0);in the#elifblock and change#define MAX_PIN 10to#define MAX_PIN 11.Sheepybloke2-0 commentedon Mar 12, 2022
This issue that I found might also be relevant here: #1363 (comment)
Brannan-repo commentedon Mar 8, 2024
Sorry to a stickler, but this took me a while to figure out you have a typo in your code, it should be _fl_deFpin, not 2 E's
zackees commentedon Jun 3, 2026
Tracked in FastLED/fbuild#386 for SAMD21 / SAMD51 fbuild platform/build support validation.
That fbuild issue is scoped to board metadata, toolchain/backend support, and FastLED smoke-build evidence. Any remaining FastLED source/platform-code blocker should stay linked from both sides.
zackees commentedon Jun 3, 2026
fbuild tracker: FastLED/fbuild#386
Validated in the fbuild build tool. The QT Py M0 toolchain + Arduino core compile cleanly:
tests/platform/qtpy_m0(board = adafruit_qt_py_m0, MCUSAMD21E18A, variantqtpy_m0)arm-none-eabi-gcc 15.2.1+ AdafruitArduinoCore-samd 1.7.16+CMSIS-Atmel 1.2.2-DARDUINO_QTPY_M0,-DADAFRUIT_QTPY_M0,-D__SAMD21E18A__,-DARM_MATH_CM0PLUS,-DCRYSTALLESSThis is FastLED-side, not a build/toolchain issue. The
static_assert(validpin(), "Invalid pin specified")you hit is fromsrc/platforms/arm/d21/fastpin_arm_d21.h— that header maps Arduino pin numbers to SAMD21 PORT/pin bits, and on the QT Py M0 pin11(the on-board NeoPixel) is not in the validpin table. Adding a_FL_DEFPIN(11, ...)entry for the QT Py M0's PA10 (or whatever the actual NeoPixel port pin is on the qtpy_m0 variant) in d21 would resolve this. The build tool side is green.fix(samd): map QT Py M0 NeoPixel pin (FastLED#4103)