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