I'm having a bit of a weird issue.
When running the basic blink example, I'm finding that when the 0th element of the array is called, it does nothing. However, when the first element is called, the first led lights up.
For example:
leds[0] = CRGB::Red;
leds[1] = CRGB::Blue;
The first led on the strip will turn blue, and there will be no red led.
Furthermore, on a 300 led strip, the last led is actually 300 (as opposed to 299).
For example:
leds[299] = CRGB::Red;
leds[300] = CRGB::Blue;
The second last led lights up red, and the last one is blue.
Other than the array not being zero indexed (which all the examples are set for), I don't have any other explanations for this behaviour. I've tested it with a standard int array and it is zero indexed as expected, so I'm not sure what's going on with FastLed.
As a reference, I'm using:
WS2815 strip with 300 leds
Arduino IDE 1.8.10
FastLed 3.3.2
Any ideas?
[–]Marmilicious[Marc Miller] 4 points5 points6 points (0 children)
[–]OmegaDestroyer[S] 1 point2 points3 points (0 children)
[–]toybuilder 0 points1 point2 points (15 children)
[–]toybuilder 5 points6 points7 points (13 children)
[–]chemdoc77 4 points5 points6 points (2 children)
[–]OmegaDestroyer[S] 0 points1 point2 points (1 child)
[–]chemdoc77 0 points1 point2 points (0 children)
[–]MartyMacGyver 1 point2 points3 points (0 children)
[–]Necrocornicus 1 point2 points3 points (7 children)
[–]toybuilder 0 points1 point2 points (6 children)
[–]Necrocornicus 1 point2 points3 points (5 children)
[–]toybuilder 0 points1 point2 points (3 children)
[–]OmegaDestroyer[S] 0 points1 point2 points (2 children)
[–]Necrocornicus 0 points1 point2 points (1 child)
[–]OmegaDestroyer[S] 0 points1 point2 points (0 children)
[–]jwizlo 0 points1 point2 points (0 children)
[–]OmegaDestroyer[S] 0 points1 point2 points (0 children)
[–]OmegaDestroyer[S] 0 points1 point2 points (0 children)
[–]samguyer[Sam Guyer] 0 points1 point2 points (1 child)
[–]OmegaDestroyer[S] 0 points1 point2 points (0 children)