I have been trying out FastLED on several of little Arduino clones, including the Attiny85-based Digispark (from Banggood and AliExpress) and so far haven’t found any real show-stoppers and they all have worked so far. I have found one thing that looks like it might be an incorrect definition in the library however.
The FirstLight example is something I wish I had found right away, there is a lot explained in this example and I thank you all for it. HOWEVER: I found it because I was having trouble trying to use this statement:
FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS)
I discovered that if LED_TYPE = NEOPIXEL then COLOR_ORDER should not be passed. OK, but if I use NEOPIXEL (and don’t pass COLOR_ORDER) then red and green are reversed:
leds[whiteLed] = CRGB::Green;
gives red (and vice versa).
If I look at the Adafruit NeoPixel Überguide, I read that NeoPixels are GRB, not RGB and I am using real NeoPixels from Adafruit.
Substituting
FastLED.addLeds<WS2812, DATA_PIN, RGB>(leds, NUM_LEDS)
gives me green when I execute the same statement as above.
Changing to GRB makes the colors turn out correctly.
Am I doing something wrong or is this an oversight in the Library?
Takeaway: Test your strips to make sure you’re using the right color order.
Also: I’m using 3.1 but get this message when I compile:
#warning FastLED version 3.001.001
Is this just the numbering system and I need to get used to it?
