Skip to content

Commit

Permalink
Re-introduced rainbow as playlist-progress
Browse files Browse the repository at this point in the history
  • Loading branch information
biologist79 committed Jan 2, 2021
1 parent eb642f2 commit f004273
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2290,8 +2290,9 @@ void showLed(void *parameter) {
for (uint8_t led = 0; led < numLedsToLight; led++) {
if (lockControls) {
leds[ledAddress(led)] = CRGB::Red;
} else if (!playProperties.pausePlay) { // Hue-rainbow
leds[ledAddress(led)].setHue((uint8_t) (85 - ((double) 95 / NUM_LEDS) * led));
} else if (!playProperties.pausePlay) {
// leds[ledAddress(led)].setHue((uint8_t) (85 - ((double) 95 / NUM_LEDS) * led)); // green to red
leds[ledAddress(led)].setHue((uint8_t) ((double) 255 / NUM_LEDS) * led); // Hue-rainbow
}
}
if (playProperties.pausePlay) {
Expand Down

0 comments on commit f004273

Please sign in to comment.