Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "FastLED.h"
- #define NUM_LEDS 32
- //CRGB leds[NUM_LEDS]; // Not using this. Use CRGBArray instead.
- CRGBArray<NUM_LEDS> leds;
- CRGBSet partA(leds(0,5));
- CRGBSet partB(leds(26,31));
- //---------------------------------------------------------------
- void setup() {
- FastLED.addLeds<LPD8806, 11, 13, GRB>(leds, NUM_LEDS);
- FastLED.setBrightness(50);
- }
- //---------------------------------------------------------------
- void loop()
- {
- fill_rainbow(leds, NUM_LEDS, millis()/15);
- leds(partA) = CHSV(0,180,255); // Not working.
- leds(partB) = CHSV(82,255,255); // Not working.
- FastLED.show();
- }
- /*********** ERROR MESSAGE:
- In file included from CRGBSet_example.ino:1:0:
- C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/FastLED.h:12:2: warning: #warning FastLED version 3.001.001 (Not really a warning, just telling you here.) [-Wcpp]
- #warning FastLED version 3.001.001 (Not really a warning, just telling you here.)
- ^
- CRGBSet_example.ino: In function 'void loop()':
- CRGBSet_example:20: error: no match for call to '(CRGBArray<32>) (CRGBSet&)'
- In file included from C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/FastLED.h:51:0,
- from CRGBSet_example.ino:1:
- C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/pixelset.h:294:7: note: candidate is:
- class CRGBArray : public CPixelView<CRGB> {
- ^
- In file included from C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/FastLED.h:51:0,
- from CRGBSet_example.ino:1:
- C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/pixelset.h:56:21: note: CPixelView<PIXEL_TYPE> CPixelView<PIXEL_TYPE>::operator()(int, int) [with PIXEL_TYPE = CRGB]
- inline CPixelView operator()(int start, int end) { return CPixelView(leds, start, end); }
- ^
- C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/pixelset.h:56:21: note: candidate expects 2 arguments, 1 provided
- CRGBSet_example:21: error: no match for call to '(CRGBArray<32>) (CRGBSet&)'
- In file included from C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/FastLED.h:51:0,
- from CRGBSet_example.ino:1:
- C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/pixelset.h:294:7: note: candidate is:
- class CRGBArray : public CPixelView<CRGB> {
- ^
- In file included from C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/FastLED.h:51:0,
- from CRGBSet_example.ino:1:
- C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/pixelset.h:56:21: note: CPixelView<PIXEL_TYPE> CPixelView<PIXEL_TYPE>::operator()(int, int) [with PIXEL_TYPE = CRGB]
- inline CPixelView operator()(int start, int end) { return CPixelView(leds, start, end); }
- ^
- C:\Users\marc\Google Drive\arduino\sketches\libraries\FastLED/pixelset.h:56:21: note: candidate expects 2 arguments, 1 provided
- no match for call to '(CRGBArray<32>) (CRGBSet&)'
- ***********/
Advertisement
Add Comment
Please, Sign In to add comment