Hi!
I use FastLED library for Arduino and have no problems with it. But I can’t use FastLED in Platformio due to this error popping up every time I compile the code:
In file included from C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/fastled_avr.h:6:0,
from C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms.h:39,
from C:\Users\Jarvis\.platformio\lib\FastLED_ID126\FastLED.h:52,
from C:\Users\Jarvis\.platformio\lib\FastLED_ID126\FastLED.cpp:2:
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h: In static member function 'static void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showRGBInternal(PixelController<RGB_ORDER>&)':
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
Compiling .pio\build\nanoatmega328\libb1d\FastLED_ID126\bitswap.cpp.o
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:409:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:410:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:411:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:425:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:426:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:427:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:444:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:445:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:446:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
*** [.pio\build\nanoatmega328\libb1d\FastLED_ID126\FastLED.cpp.o] Error 1
In file included from C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/fastled_avr.h:6:0,
from C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms.h:39,
from C:\Users\Jarvis\.platformio\lib\FastLED_ID126\FastLED.h:52,
from C:\Users\Jarvis\.platformio\lib\FastLED_ID126\bitswap.cpp:2:
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h: In static member function 'static void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::showRGBInternal(PixelController<RGB_ORDER>&)':
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:409:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:410:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:411:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:425:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:426:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:427:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:444:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 4: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:445:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 3: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:326:24: error: expected primary-expression before '__attribute__'
#define FL_FALLTHROUGH __attribute__ ((fallthrough));
^
C:\Users\Jarvis\.platformio\lib\FastLED_ID126\platforms/avr/clockless_trinket.h:446:55: note: in expansion of macro 'FL_FALLTHROUGH'
case 2: _D2(0) LO1 _D3(0) HI1 _D1(1) QLO2(b0,0) FL_FALLTHROUGH
^
*** [.pio\build\nanoatmega328\libb1d\FastLED_ID126\bitswap.cpp.o] Error 1