Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "FastLED.h"
- #define NUM_LEDS_PER_STRIP 80
- #define NUM_STRIPS 4;
- CRGB leds[NUM_LEDS_PER_STRIP];
- CLEDController *controllers[NUM_STRIPS];
- uint8_t gBrightness = 128;
- void setup() {
- controllers[0] = &FastLED.addLeds<WS2812,1>(leds, NUM_LEDS_PER_STRIP);
- controllers[1] = &FastLED.addLeds<WS2812,2>(leds, NUM_LEDS_PER_STRIP);
- controllers[2] = &FastLED.addLeds<WS2812,10>(leds, NUM_LEDS_PER_STRIP);
- controllers[3] = &FastLED.addLeds<WS2812,11>(leds, NUM_LEDS_PER_STRIP);
- }
- void loop() {
- // draw led data for the first strand into leds
- fill_solid(leds, CRGB::Red);
- controllers[0]->showLeds(gBrightness);
- // draw led data for the second strand into leds
- fill_solid(leds, CRGB::Greem);
- controllers[1]->showLeds(gBrightness);
- // draw led data for the third strand into leds
- fill_solid(leds, CRGB::Blue);
- controllers[2]->showLeds(gBrightness);
- // draw led data for the first strand into leds
- fill_solid(leds, CRGB::White);
- controllers[3]->showLeds(gBrightness);
- }
- ------------------------- ERROR MESSAGES --------------------------------------------------
- Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Nano, ATmega328"
- Using library FastLED in folder: D:\Arduino_Sketches\libraries\FastLED-master
- D:\ARDUINO\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -ID:\ARDUINO\hardware\arduino\avr\cores\arduino -ID:\ARDUINO\hardware\arduino\avr\variants\eightanaloginputs -ID:\Arduino_Sketches\libraries\FastLED-master C:\Users\X\AppData\Local\Temp\build7107826087221206733.tmp\sketch_feb14a.cpp -o C:\Users\X\AppData\Local\Temp\build7107826087221206733.tmp\sketch_feb14a.cpp.o
- sketch_feb14a.ino:4:21: error: expected ']' before ';' token
- sketch_feb14a.ino:7:29: note: in expansion of macro 'NUM_STRIPS'
- sketch_feb14a.ino:7:39: error: expected unqualified-id before ']' token
- sketch_feb14a.ino: In function 'void setup()':
- sketch_feb14a.ino:11:3: error: 'controllers' was not declared in this scope
- sketch_feb14a.ino: In function 'void loop()':
- sketch_feb14a.ino:19:29: error: no matching function for call to 'fill_solid(CRGB [80], CRGB::HTMLColorCode)'
- sketch_feb14a.ino:19:29: note: candidates are:
- In file included from D:\Arduino_Sketches\libraries\FastLED-master/FastLED.h:50:0,
- from sketch_feb14a.ino:1:
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:18:6: note: void fill_solid(CRGB*, int, const CRGB&)
- void fill_solid( struct CRGB * leds, int numToFill,
- ^
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:18:6: note: candidate expects 3 arguments, 2 provided
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:23:6: note: void fill_solid(CHSV*, int, const CHSV&)
- void fill_solid( struct CHSV* targetArray, int numToFill,
- ^
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:23:6: note: candidate expects 3 arguments, 2 provided
- sketch_feb14a.ino:20:3: error: 'controllers' was not declared in this scope
- sketch_feb14a.ino:23:20: error: 'Greem' is not a member of 'CRGB'
- sketch_feb14a.ino:27:30: error: no matching function for call to 'fill_solid(CRGB [80], CRGB::HTMLColorCode)'
- sketch_feb14a.ino:27:30: note: candidates are:
- In file included from D:\Arduino_Sketches\libraries\FastLED-master/FastLED.h:50:0,
- from sketch_feb14a.ino:1:
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:18:6: note: void fill_solid(CRGB*, int, const CRGB&)
- void fill_solid( struct CRGB * leds, int numToFill,
- ^
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:18:6: note: candidate expects 3 arguments, 2 provided
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:23:6: note: void fill_solid(CHSV*, int, const CHSV&)
- void fill_solid( struct CHSV* targetArray, int numToFill,
- ^
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:23:6: note: candidate expects 3 arguments, 2 provided
- sketch_feb14a.ino:31:31: error: no matching function for call to 'fill_solid(CRGB [80], CRGB::HTMLColorCode)'
- sketch_feb14a.ino:31:31: note: candidates are:
- In file included from D:\Arduino_Sketches\libraries\FastLED-master/FastLED.h:50:0,
- from sketch_feb14a.ino:1:
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:18:6: note: void fill_solid(CRGB*, int, const CRGB&)
- void fill_solid( struct CRGB * leds, int numToFill,
- ^
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:18:6: note: candidate expects 3 arguments, 2 provided
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:23:6: note: void fill_solid(CHSV*, int, const CHSV&)
- void fill_solid( struct CHSV* targetArray, int numToFill,
- ^
- D:\Arduino_Sketches\libraries\FastLED-master/colorutils.h:23:6: note: candidate expects 3 arguments, 2 provided
- Multiple libraries were found for "FastLED.h"
- Used: D:\Arduino_Sketches\libraries\FastLED-master
- Not used: D:\ARDUINO\libraries\FastLED-master
- expected ']' before ';' token
Advertisement
Add Comment
Please, Sign In to add comment