You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aaron Liddiment edited this page Nov 1, 2015
·
1 revision
To get access to the appropriate led using X and Y
leds(X, Y) = CHSV(255, 255, 255);
or if you wish to just use an index, from 0 up to (number leds - 1)
leds(i) = CRGB::Red;
In both cases, if you specify an X/Y or index beyond the size of the matrix you will still have a valid CRGB returned but it will be the same one for all cases. It's defined in the class as "OutOfBounds".
If you wish to obtain the address of an led instead, such as calling a function that expects a pointer to a CRGB, this can be done using an index