Repository navigation
Description
Hi, is there a way to run FastLED on Arduino M0, build around Atmel's SAMD21 G21A?
I can't run even simple sketch. Compiler shows an error compiling for board Arduino M0.
Are there some (setup) things to make it run? I don't really understand those error messages.
My testing code:
#include <FastLED.h>
#define LED_PIN 5
#define NUM_LEDS 100
#define BRIGHTNESS 127
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];
void setup() {
// put your setup code here, to run once:
delay( 2000 ); // power-up safety delay
FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
FastLED.setBrightness( BRIGHTNESS );
}
void loop() {
// put your main code here, to run repeatedly:
FastLED.clear();
fill_rainbow(leds, NUM_LEDS, 1, 50);
FastLED.show();
}
Compiler error message:
In file included from /Users/patrikvasilco/Documents/Arduino/FastLED_head/FastLED_head.ino:1:0:
/Users/patrikvasilco/Documents/Arduino/libraries/FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.003
pragma message "FastLED version 3.003.003"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/patrikvasilco/Documents/Arduino/libraries/FastLED/FastLED.h:65:0,
from /Users/patrikvasilco/Documents/Arduino/FastLED_head/FastLED_head.ino:1:
/Users/patrikvasilco/Documents/Arduino/libraries/FastLED/fastspi.h:130: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 /Users/patrikvasilco/Documents/Arduino/libraries/FastLED/FastLED.h:48:0,
from /Users/patrikvasilco/Documents/Arduino/FastLED_head/FastLED_head.ino:1:
/Users/patrikvasilco/Documents/Arduino/libraries/FastLED/fastpin.h: In instantiation of 'class FastPin<5>':
/Users/patrikvasilco/Documents/Arduino/libraries/FastLED/fastpin.h:239:29: required from 'class FastPinBB<5>'
/Users/patrikvasilco/Documents/Arduino/libraries/FastLED/platforms/arm/d21/clockless_arm_d21.h:10:52: required from 'class ClocklessController<5, 12, 30, 18, (EOrder)66, 0, false, 50>'
/Users/patrikvasilco/Documents/Arduino/libraries/FastLED/chipsets.h:582:7: required from 'class WS2812Controller800Khz<5, (EOrder)66>'
/Users/patrikvasilco/Documents/Arduino/libraries/FastLED/FastLED.h:105:52: required from 'class WS2812B<5, (EOrder)66>'
/Users/patrikvasilco/Documents/Arduino/libraries/FastLED/FastLED.h:302:39: required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = WS2812B; unsigned char DATA_PIN = 5; EOrder RGB_ORDER = (EOrder)66]'
/Users/patrikvasilco/Documents/Arduino/FastLED_head/FastLED_head.ino:14:67: required from here
/Users/patrikvasilco/Documents/Arduino/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 M0.
Activity
zackees commentedon Apr 16, 2026
Closing this issue — it was opened over 4 years ago with no activity. If this is still relevant with a current FastLED version, please reopen with a minimal reproduction sketch and version details. Thank you!