Hello,
This questions may seem very amateur, and probably because I am with fastLed but any help would be appreciated. For the things I am talking about I am using APA102 with a teensy 3.2.
My questions-
-
What does this statement do:
CRGB leds[NUM_LEDS];
also, why is it called CRGB, as in why the C, what does that stand for?
Because I am getting a bit confused by that line. I know I have to use it but I don’t know what it does. Also, is there a reason why I have to state the number of LEDs in there? -
If I want to do a very simple thing such as making the first LED on the strip turn red, I would need to do code like this, right:
leds[0] = CRGB::Red;
Is that correct?
It is saying that I want LED 0 to be red?
Because when I do it, the whole strip, for lack of a better word goes mental. All the lights are flicking on and off quite frantically. I have checked my wiring and that all seems fine, and even the most basic of examples seems to be going nuts. Literally, no idea what is up with it.
With the dotstar library I use:
strip.setPixelColor(LED, 255, 255, 255);
and that works fine. So I am really confused why the fastled library is not working for me
-
For me, I am keen to have very accurate timing, if possible to <10millis, would it be more appropriate to use FastLed or dotstar for this?
Thanks you for the help in advance
Tej
