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

@ -82,4 +82,4 @@
#define Key_mouseBtnN XXX #define Key_mouseBtnN XXX
#endif #endif

Loading…
Cancel
Save