Merge pull request #7 from keyboardio/f/bootAnimation-EEPROM-less

bootAnimation: Just do it
pull/365/head
Jesse Vincent 7 years ago committed by GitHub
commit 0965d9f07e

@ -1,8 +1,5 @@
#include "BootAnimation.h" #include "BootAnimation.h"
#include "Kaleidoscope-LEDControl.h" #include "Kaleidoscope-LEDControl.h"
#include "EEPROM.h"
#define EEPROM_BOOT_ANIMATION_LOCATION 1
#ifdef ARDUINO_AVR_MODEL01 #ifdef ARDUINO_AVR_MODEL01
static void static void
@ -19,9 +16,6 @@ type_letter(uint8_t letter) {
void void
bootAnimation(void) { bootAnimation(void) {
#ifdef ARDUINO_AVR_MODEL01 #ifdef ARDUINO_AVR_MODEL01
if (EEPROM.read(EEPROM_BOOT_ANIMATION_LOCATION))
return;
LEDControl.set_all_leds_to(0, 0, 0); LEDControl.set_all_leds_to(0, 0, 0);
type_letter(LED_K); type_letter(LED_K);
type_letter(LED_E); type_letter(LED_E);
@ -37,7 +31,5 @@ bootAnimation(void) {
type_letter(LED_0); type_letter(LED_0);
type_letter(LED_PERIOD); type_letter(LED_PERIOD);
type_letter(LED_9); type_letter(LED_9);
EEPROM.update(EEPROM_BOOT_ANIMATION_LOCATION, 1);
#endif #endif
} }

Loading…
Cancel
Save