Various state changed logic simplifications

Changed main segment, must be selected
This commit is contained in:
cschwinne
2022-02-16 21:12:33 +01:00
parent 7aef551292
commit 7b969bb8c2
34 changed files with 279 additions and 373 deletions

View File

@@ -4,6 +4,12 @@
* Color conversion methods
*/
void setRandomColor(byte* rgb)
{
lastRandomIndex = strip.get_random_wheel_index(lastRandomIndex);
colorHStoRGB(lastRandomIndex*256,255,rgb);
}
void colorFromUint32(uint32_t in, bool secondary)
{
byte *_col = secondary ? colSec : col;