diff options
author | Drashna Jaelre <[email protected]> | 2023-11-26 03:59:18 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-26 22:59:18 +1100 |
commit | 3ef06aa732ce8063e11b2f983592529883f7ecbc (patch) | |
tree | 7fa143f938e711b6db1c2ed40c36298b8f7604c7 /keyboards/planck/keymaps/zach | |
parent | 4601f339e48b0116ca139dd06ce55ef0b9ed598f (diff) | |
download | qmk_firmware-3ef06aa732ce8063e11b2f983592529883f7ecbc.tar.gz qmk_firmware-3ef06aa732ce8063e11b2f983592529883f7ecbc.zip |
Improve and Cleanup Shutdown callbacks (#21060)
Co-authored-by: Dasky <[email protected]>
Diffstat (limited to 'keyboards/planck/keymaps/zach')
-rw-r--r-- | keyboards/planck/keymaps/zach/zach_common_functions.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/keyboards/planck/keymaps/zach/zach_common_functions.c b/keyboards/planck/keymaps/zach/zach_common_functions.c index ae5f44e713..e17e31c7b5 100644 --- a/keyboards/planck/keymaps/zach/zach_common_functions.c +++ b/keyboards/planck/keymaps/zach/zach_common_functions.c @@ -52,8 +52,6 @@ enum my_keycodes{ #ifdef AUDIO_ENABLE #include "audio.h" -float tone_startup[][2] = SONG(STARTUP_SOUND); -float tone_goodbye[][2] = SONG(GOODBYE_SOUND); float tone_colemak[][2] = SONG(COLEMAK_SOUND); float tone_swcole[][2] = SONG(QWERTY_SOUND); float tone_capslock_on[][2] = SONG(CAPS_LOCK_ON_SOUND); @@ -414,32 +412,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; }; -void matrix_init_user(void){ // Run once at startup - #ifdef AUDIO_ENABLE - _delay_ms(50); // gets rid of tick - PLAY_SONG(tone_startup); - #endif -} - -#ifdef AUDIO_ENABLE -void play_goodbye_tone(void){ - PLAY_SONG(tone_goodbye); - _delay_ms(150); -} - -void shutdown_user(void){ - PLAY_SONG(tone_goodbye); - _delay_ms(150); - stop_all_notes(); -} - -void music_on_user(void){ // Run when the music layer is turned on - PLAY_SONG(tone_startup); -} - -void music_off_user(void){ // Run when music is turned off - PLAY_SONG(tone_goodbye); -} -#endif - #endif |