diff options
author | vin <git@vineetk.net> | 2023-10-15 19:46:33 -0400 |
---|---|---|
committer | vin <git@vineetk.net> | 2023-10-15 19:46:33 -0400 |
commit | 7ed78a843d4a90ae8adc69bf3c3dbf573a379f75 (patch) | |
tree | 420f8e7829b46bf43b5dbafc46f0a72f644e9588 /users/stanrc85/startup_fanfare.c | |
parent | 392a85e1f6fefd549cd52945ab1447a2d6901484 (diff) |
remove userspace declarations
Diffstat (limited to 'users/stanrc85/startup_fanfare.c')
-rw-r--r-- | users/stanrc85/startup_fanfare.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/users/stanrc85/startup_fanfare.c b/users/stanrc85/startup_fanfare.c deleted file mode 100644 index ae73261ae5..0000000000 --- a/users/stanrc85/startup_fanfare.c +++ /dev/null @@ -1,43 +0,0 @@ -#include "stanrc85.h" - -static uint8_t top = 0; -static uint8_t middle = 0; -static uint8_t bottom = 0; - -static bool is_enabled = true; -static bool is_rgblight_startup = true; -static uint16_t rgblight_startup_loop_timer; - -void matrix_scan_user(void) { - // Boot up "fanfare" - if (is_rgblight_startup && is_keyboard_master()) { - if (timer_elapsed(rgblight_startup_loop_timer) > 10) { - static uint8_t counter; - counter++; - if (counter == 1) { - top = 1; - writePin(INDICATOR_PIN_0, top); - wait_ms(300); - top = 0; - writePin(INDICATOR_PIN_0, top); - } - if (counter == 2) { - middle = 1; - writePin(INDICATOR_PIN_1, middle); - wait_ms(300); - middle = 0; - writePin(INDICATOR_PIN_1, middle); - } - if (counter == 3) { - bottom = 1; - writePin(INDICATOR_PIN_2, bottom); - wait_ms(300); - bottom = 0; - writePin(INDICATOR_PIN_2, bottom); - } - if (counter == 4) { - is_enabled = is_rgblight_startup = false; - } - } - } -} |