Hi everyone,
I'm using a ws2812b LED stripe and wanting to turn the specific leds off. I have tried CRGB::Black and assigning 0 to the led's r,g,b values, both ended up in compilations errors. Here are my code and error log. Does anyone know what is causing this? Thank you.
// Now turn the LED off, then pause
leds[0].r=0;
leds[0].g=0;
leds[0].b=0;
FastLED.show();
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino Mega ADK"
In file included from C:\Users\sesa525401\Documents\Arduino\sketch_aug15a\sketch_aug15a.ino:1:0:
C:\Users\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.000
pragma message "FastLED version 3.003.000"
^
C:\Users\Documents\Arduino\libraries\FastLED/controller.h: In member function 'clearLeds':
C:\Users\Documents\Arduino\libraries\FastLED/controller.h:76:82: internal compiler error: Segmentation fault
virtual void clearLeds(int nLeds) { showColor(CRGB::Black, nLeds, CRGB::Black); }
^
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Mega ADK.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.