You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
621 B
33 lines
621 B
8 years ago
|
#include "BootAnimation.h"
|
||
|
#include "KeyboardConfig.h"
|
||
8 years ago
|
|
||
|
static void
|
||
|
type_letter(uint8_t letter) {
|
||
|
led_set_crgb_at(letter, {255, 0, 0});
|
||
|
led_sync();
|
||
|
delay(250);
|
||
|
led_set_crgb_at(letter, {0, 0, 0});
|
||
|
led_sync();
|
||
|
delay(10);
|
||
|
}
|
||
|
|
||
|
void
|
||
8 years ago
|
bootAnimation (void) {
|
||
8 years ago
|
LEDControl.set_all_leds_to(0, 0, 0);
|
||
|
|
||
|
type_letter(LED_K);
|
||
|
type_letter(LED_E);
|
||
|
type_letter(LED_Y);
|
||
|
type_letter(LED_B);
|
||
|
type_letter(LED_O);
|
||
|
type_letter(LED_A);
|
||
|
type_letter(LED_R);
|
||
|
type_letter(LED_D);
|
||
|
type_letter(LED_I);
|
||
|
type_letter(LED_O);
|
||
|
type_letter(LED_SPACE);
|
||
|
type_letter(LED_0);
|
||
|
type_letter(LED_PERIOD);
|
||
|
type_letter(LED_9);
|
||
|
}
|