Hi all, I am trying to compile the blink example sketch from the FastLED

(Tom Goode) #1

Hi all,

I am trying to compile the blink example sketch from the FastLED library for an Adafruit Feather M4 Express, and it produces compiler errors.

C:\Users\Tom Goode\Documents\Arduino\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:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/FastLED.h:48:0,

             from C:\Users\TOMGOO~1\AppData\Local\Temp\arduino_modified_sketch_360174\Blink.ino:1:

C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/fastpin.h: In instantiation of ‘class FastPin<8u>’:

C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:96:49: required from ‘class ClocklessController<8u, 30, 75, 45, (EOrder)66u, 0, false, 10>’

C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/chipsets.h:468:7: required from ‘class WS2812Controller800Khz<8u, (EOrder)66u>’

C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/FastLED.h:91:34: required from ‘class NEOPIXEL<8u>’

C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/FastLED.h:307:28: required from ‘static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = NEOPIXEL; unsigned char DATA_PIN = 8u]’

C:\Users\TOMGOO~1\AppData\Local\Temp\arduino_modified_sketch_360174\Blink.ino:23:56: required from here

C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/fastpin.h:207:2: error: static assertion failed: Invalid pin specified

static_assert(validpin(), “Invalid pin specified”);


In file included from C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/platforms/avr/fastled_avr.h:6:0,

             from C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/platforms.h:32,

             from C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/FastLED.h:52,

             from C:\Users\TOMGOO~1\AppData\Local\Temp\arduino_modified_sketch_360174\Blink.ino:1:

C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h: In instantiation of ‘void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showPixels(PixelController<RGB_ORDER>&) [with unsigned char DATA_PIN = 8u; int T1 = 30; int T2 = 75; int T3 = 45; EOrder RGB_ORDER = (EOrder)66u; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 10]’:

C:\Users\TOMGOO~1\AppData\Local\Temp\arduino_modified_sketch_360174\Blink.ino:54:1: required from here

C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:112:7: error: ‘cli’ was not declared in this scope



C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:165:7: error: ‘sei’ was not declared in this scope



Using library FastLED at version 3.2.1 in folder: C:\Users\Tom Goode\Documents\Arduino\libraries\FastLED
exit status 1

The code is so basic I have to think its either a bug in the fastled library, or the BSP for the Feather M4 express. Have you seen similar problems on other ATSAMD51 based boards?

Any thoughts?

(Daniel Garcia) #2

FastLED doesn’t support the M4 feathers yet.