diff options
Diffstat (limited to 'usb-fastled/usb-fastled.cpp')
-rw-r--r-- | usb-fastled/usb-fastled.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usb-fastled/usb-fastled.cpp b/usb-fastled/usb-fastled.cpp index 4e5e2cf..17f31c9 100644 --- a/usb-fastled/usb-fastled.cpp +++ b/usb-fastled/usb-fastled.cpp @@ -90,6 +90,7 @@ void handle_cmd(uint8_t cmd) case 'r': fill_solid(leds, NUM_LEDS, CRGB::Red); FastLED.show(); led_on(); break; case 'g': fill_solid(leds, NUM_LEDS, CRGB::Green); FastLED.show(); led_on(); break; case 'b': fill_solid(leds, NUM_LEDS, CRGB::Blue); FastLED.show(); led_on(); break; + case 'w': fill_rainbow(leds, NUM_LEDS, 0, 256/NUM_LEDS); FastLED.show(); led_on(); break; case '!': reset2bootloader(); break; default: printf("error\r\n"); return; } @@ -107,6 +108,8 @@ int main(void) fastled_init(); sei(); + fill_solid(leds, NUM_LEDS, CRGB::Black); + FastLED.show(); for(;;) { int16_t BytesReceived = usbio_bytes_received(); while(BytesReceived > 0) { |