Hello guys
I'm having a problem when I try to use 4 strips of the WS2811 in parallel
When I try to add a fourth strip on the code and verify/compile, I got a:
"Error compiling for board Arduino/Genuino Uno."
#include <FastLED.h>
#define NUM_LEDS 50
#define DATA_PIN0 13
#define DATA_PIN1 12
#define DATA_PIN2 8
#define DATA_PIN3 7
#define BRIGHTNESS 1
CRGB arrayLED0[NUM_LEDS];
CRGB arrayLED1[NUM_LEDS];
CRGB arrayLED2[NUM_LEDS];
CRGB arrayLED3[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2811, DATA_PIN0>(arrayLED0, NUM_LEDS);
FastLED.addLeds<WS2811, DATA_PIN1>(arrayLED1, NUM_LEDS);
FastLED.addLeds<WS2811, DATA_PIN2>(arrayLED2, NUM_LEDS);
FastLED.addLeds<WS2811, DATA_PIN3>(arrayLED3, NUM_LEDS);
When I switch the board to Mega, without touching the code, it compiles.
If I try to add more strips to the code, like 16 strips, I got the same error(15 strips works fine)
This is the error message:
Arduino: 1.8.9 (Windows 7), Board: "Arduino/Genuino Uno"
Build options changed, rebuilding all
In file included from C:\Users\Administrator\Documents\Arduino\FastLED_3.0\FastLED_3.0.ino:1:0:
C:\Users\Administrator\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.006
# pragma message "FastLED version 3.002.006"
^
C:\Users\Administrator\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h: In member function 'showPixels':
C:\Users\Administrator\Documents\Arduino\libraries\FastLED/platforms/avr/clockless_trinket.h:167:2: internal compiler error: Segmentation fault
}
^
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 (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/program files (x86)/arduino/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/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
In my case, I want to use exactly 16 strips of those leds
Do I need a "stronger" arduino board? whitch one?
Thank you guys!