From 6be7ffa7c3beaea93efde9fd79cd0e8c2cf62522 Mon Sep 17 00:00:00 2001 From: ollo Date: Fri, 7 Dec 2018 22:52:53 +0100 Subject: [PATCH] Scale brightness of rainbow --- SideboardLED.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SideboardLED.ino b/SideboardLED.ino index 2b32274..99b1bb7 100644 --- a/SideboardLED.ino +++ b/SideboardLED.ino @@ -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); }