Scale brightness of rainbow
This commit is contained in:
parent
01e6e7bfe0
commit
6be7ffa7c3
@ -118,11 +118,12 @@ void loop() {
|
||||
}
|
||||
FastLED.show();
|
||||
} else {
|
||||
if (rainbowIndex >= 256) {
|
||||
if (rainbowIndex >= 255) {
|
||||
/* one byte used -> simulate overflow */
|
||||
rainbowIndex=0;
|
||||
}
|
||||
ledset.fill_rainbow(rainbowIndex++);
|
||||
ledset.fadeLightBy( 64 );
|
||||
FastLED.delay(30);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user