diff options
author | lokher <lokher@gmail.com> | 2022-12-06 17:10:48 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-12-07 15:50:49 +0800 |
commit | a336c2c5005251e4cb0f3a62ccabdb4cfccad915 (patch) | |
tree | 3c948b631a5e3b6f940dabe02fad3c7487e6f350 /keyboards/planck/keymaps/sdothum/common/init.h | |
parent | 27fc28fd2ff52e079a5bc58d6aaea4c752420615 (diff) |
Merge upstream master to 2022 Q4 breaking change
Diffstat (limited to 'keyboards/planck/keymaps/sdothum/common/init.h')
-rw-r--r-- | keyboards/planck/keymaps/sdothum/common/init.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/keyboards/planck/keymaps/sdothum/common/init.h b/keyboards/planck/keymaps/sdothum/common/init.h deleted file mode 100644 index 6366a19f65..0000000000 --- a/keyboards/planck/keymaps/sdothum/common/init.h +++ /dev/null @@ -1,56 +0,0 @@ - -// ....................................................................... Audio - -void matrix_init_user(void) -{ -#ifdef STENO_ENABLE - steno_set_mode(STENO_MODE_BOLT); // or STENO_MODE_GEMINI -#endif -#ifdef AUDIO_ENABLE - startup_user(); -#endif -} - -#ifdef AUDIO_ENABLE -#ifdef BACKLIGHT_ENABLE -void led_set_user(uint8_t usb_led) -{ - static uint8_t old_usb_led = 0; - _delay_ms(10); // gets rid of tick - if (!is_playing_notes()) { - if ((usb_led & (1<<USB_LED_CAPS_LOCK)) && !(old_usb_led & (1<<USB_LED_CAPS_LOCK))) { - // if capslock LED is turning on - PLAY_SONG(song_caps_on); - } - else if (!(usb_led & (1<<USB_LED_CAPS_LOCK)) && (old_usb_led & (1<<USB_LED_CAPS_LOCK))) { - // if capslock LED is turning off - PLAY_SONG(song_caps_off); - } - } - old_usb_led = usb_led; -} -#endif - -void startup_user(void) -{ - _delay_ms(20); // gets rid of tick - PLAY_SONG(song_startup); -} - -void shutdown_user(void) -{ - PLAY_SONG(song_goodbye); - _delay_ms(150); - stop_all_notes(); -} - -void music_on_user(void) -{ - music_scale_user(); -} - -void music_scale_user(void) -{ - PLAY_SONG(music_scale); -} -#endif |