pull/1090/head
Jesse Vincent 3 years ago
parent 40ce430861
commit 2962f0f0c9
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -53,16 +53,16 @@ void HardwareTestMode::testLeds(void) {
constexpr cRGB brightWhite = CRGB(160, 160, 160);
// rainbow for 10 seconds
uint8_t rainbow_hue=0;
uint8_t rainbow_hue = 0;
for (uint8_t i = 0; i < 254; i++) {
cRGB rainbow = hsvToRgb(rainbow_hue, 255, 255);
cRGB rainbow = hsvToRgb(rainbow_hue, 255, 255);
rainbow_hue += 1;
if (rainbow_hue >= 255) {
rainbow_hue -= 255;
}
::LEDControl.set_all_leds_to(rainbow);
::LEDControl.syncLeds();
rainbow_hue += 1;
if (rainbow_hue >= 255) {
rainbow_hue -= 255;
}
::LEDControl.set_all_leds_to(rainbow);
::LEDControl.syncLeds();
}
setLeds(brightWhite);
setLeds(blue);

Loading…
Cancel
Save