Repository navigation
Description
Hi,
I have used one of the examples from the library and tried to compile it to my new Arduino wifi rev. 2 board,but I get the following error message:
Arduino: 1.8.8 (Windows 10), Board: "Arduino Uno WiFi Rev2, ATMEGA328"
In file included from C:\Arduino Projects\libraries\FastLED\examples\ColorPalette\ColorPalette.ino:1:0:
C:\Arduino Projects\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.001
pragma message "FastLED version 3.002.001"
^
In file included from C:\Arduino Projects\libraries\FastLED/FastLED.h:65:0,
from C:\Arduino Projects\libraries\FastLED\examples\ColorPalette\ColorPalette.ino:1:
C:\Arduino Projects\libraries\FastLED/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
^
In file included from C:\Arduino Projects\libraries\FastLED/FastLED.h:48:0,
from C:\Arduino Projects\libraries\FastLED\examples\ColorPalette\ColorPalette.ino:1:
C:\Arduino Projects\libraries\FastLED/fastpin.h: In instantiation of 'class FastPin<5u>':
C:\Arduino Projects\libraries\FastLED/platforms/avr/clockless_trinket.h:96:49: required from 'class ClocklessController<5u, 6, 8, 6, (EOrder)66u, 0, false, 10>'
C:\Arduino Projects\libraries\FastLED/chipsets.h:385:7: required from 'class WS2811Controller800Khz<5u, (EOrder)66u>'
C:\Arduino Projects\libraries\FastLED/FastLED.h:108:52: required from 'class WS2811<5u, (EOrder)66u>'
C:\Arduino Projects\libraries\FastLED/FastLED.h:295:39: required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = WS2811; unsigned char DATA_PIN = 5u; EOrder RGB_ORDER = (EOrder)66u]'
C:\Arduino Projects\libraries\FastLED\examples\ColorPalette\ColorPalette.ino:40:67: required from here
C:\Arduino Projects\libraries\FastLED/fastpin.h:207:2: error: static assertion failed: Invalid pin specified
static_assert(validpin(), "Invalid pin specified");
^
exit status 1
Error compiling for board Arduino Uno WiFi Rev2.
I understand that the new Wifi Rev. 2 board uses a different chip hence the pinout may not have been defined in the library yet.
Are there any simple workarrounds for this issue?
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
focalintent commentedon Jan 9, 2019
Nothing simple, no - at the very least there need to be pin definitions setup in fastpin_avr.h - and that’s assuming there’s no major differences between the atmega4809 and the 32u4/328.
PMPoulsen commentedon Jan 9, 2019
OK, that is beyond my skills, so I am hoping for an update to the library soon.
Thanks
scr34m88 commentedon Jan 16, 2019
I've got the same problem. I hope you'll update the library soon.
Thanks
scr34m88 commentedon Feb 4, 2019
Does someone fix this problem for himself?
At the moment I cannot use my Wifi Rev2. anymore because I need this library :)
ngyl88 commentedon May 22, 2019
Hi all, I've hit the same issue as well. Well, pin definitions are beyond my skills. Hopefully someone can help to update the library soon.
barnosch commentedon Jul 12, 2019
Same happens on the new Nano Every Board which is aswell Atmega4809.
Any news here? Sadly i can't fix that myself.
jvcop commentedon Aug 4, 2019
Same for me with the Arduino Nano Every. Are there plans on supporting Atmega4809?
I'm willing to contribute, but this is new ground for me.
focalintent commentedon Aug 12, 2019
I have a nano every board on order and will be adding support for that soon, depending on when I have time. Once I have that running I might be able to get support for the WiFi uno rev 2 without having to buy a board.
FDelporte commentedon Oct 9, 2019
Hello Daniel, any updates on this issue? Just discovered this issue after I bought a uno wifi v2 for a project for which the code was tested OK on an older uno... Would like to help but not enough knowledge of this level of coding for Arduino.
kriegsman commentedon Oct 9, 2019
Hi @FDelporte. I'm sorry to bring the sad news, but Dan passed away just about a month ago. As you can imagine, that's slowed everything down.
FastLED will continue, but I'm taking a bit of a break first. In the meantime, the FastLED community on Reddit is full of helpful people to assist with general questions -- although that probably doesn't help with the Uno Wifi v2 right now. Sorry to be the bearer of bad news.
-Mark
FDelporte commentedon Oct 9, 2019
Wow @kriegsman what a very bad news! I'm working on a book and am using this library as an integration library between arduino, java and raspberry pi. Was going to try to get in contact with Dan to thank him for this fantastic piece of work. Unfortunately I'm too late for that... My condolences to his family, friends and colleagues!!!
Never mind the v2 support right now!
kriegsman commentedon Oct 9, 2019
Thank you. It’s great to hear that you’re using FastLED in your book. I’ll let the family know that it was yet another way that Dan was helping people — and still is.
31 remaining items
RexCyrus530 commentedon Apr 30, 2023
Yes, I am using the WS2812 drivers, and they're working just fine. I am also using the <SPI.h> library in the same sketch (for the nRF24L01 module), and it's working just fine too.
ngyl88 commentedon Sep 18, 2024
Hi @RexCyrus530 , sorry for the reply after a long while. I would need your help to confirm if the issue "lost all serial communication capabilities with the new pin declarations" you reported on Apr 26, 2023 still exist with the latest release. If the issue still present, please also help us to confirm your setup. Thanks.
I found that the previous version 3.4.0 doesn't define the SPI interface
SPI_UART0_DATAandSPI_UART0_CLOCKaren't confirmed and enabled yet, but it's likely not required for serial monitor output.investigate the status of Nano Every support
zackees commentedon Jun 3, 2026
Tracked in FastLED/fbuild#389 for AVR / megaAVR / ATtiny 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 build-system status update (tracker: FastLED/fbuild#389)
Build-tool side is healthy:
nano_every.jsonpresent (platform = atmelmegaavr,core = arduino,variant = nona4809).arduino_megaavrframework (arduino/ArduinoCore-megaavr) registered inavr_frameworks.json.tests/platform/nano_every/builds cleanly.src/platforms/avr/atmega/m4809/(fastpin_avr_atmega4809.handfastpin_avr_nano_every.h).The
No hardware SPI pins definedmessage you saw is a#pragma messagefrom FastLED'sfastspi.hindicating the SPI peripheral isn't wired up for this MCU yet — output falls back to bitbang. That's FastLED-side, not a build-tool issue.zackees commentedon Aug 1, 2026
Closing as completed — ATmega4809 has been supported since 3.4.0, and there's now CI coverage.
@PMPoulsen, the
static_assert(validpin(), "Invalid pin specified")you hit was exactly what @focalintent diagnosed: no pin definitions for the part. There are now two maps undersrc/platforms/avr/atmega/m4809/:fastpin_avr_nano_every.h— Nano Every, optimised with VPORTsfastpin_avr_atmega4809.h— the generic map, whose header comment reads "include boards eg. Arduino Uno Wifi Rev 2 or Rev 3" — i.e. your boardPlus clockless support (
clockless_avr.h:429), hardware SPI viaPORTMUX_TWISPIROUTEA(fastspi_avr.h:362), anano_everyentry in the CI board matrix, and a dedicatedbuild_nano_every.ymlworkflow. Verified just now:bash compile nano_every --examples Blinksucceeds at 6137 B flash.Landed via #1050 in 3.4.0 (end of 2020); the SPI interface followed in 3.5.0.
Thank you @ngyl88 — you carried this issue for five years, answered people repeatedly, and did the incremental work as boards came up. That's the reason this is closeable.
Two honest caveats rather than a clean bill of health:
1. The Uno WiFi Rev2 path is untested.
fastpin_avr_atmega4809.h:14carries a live#warning "Untested platform. Please report any issues...". Only the Nano Every is exercised in CI. The Rev2 map is present and believed correct, not verified.2. @RexCyrus530's serial regression was never resolved. From 2023:
That is still visible in the source —
SPI_UART0_DATAandSPI_UART0_CLOCKare commented out atfastpin_avr_atmega4809.h:109-110, matching @ngyl88's note that they "aren't confirmed and enabled yet". So the loose end is real, not forgotten.@RexCyrus530 — that deserves its own issue rather than being buried at the bottom of a thread about a compile error. If you still see it, please open one with your board, FastLED version, and which pin you're driving LEDs on; a UART/LED pin collision on a board with no CI coverage is a specific, tractable question, unlike this one as originally posed.