Scale brightness of rainbow

This commit is contained in:
ollo 2018-12-07 22:52:53 +01:00
parent 01e6e7bfe0
commit 6be7ffa7c3

View File

@ -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);
}