diff options
| author | Drashna Jaelre <drashna@live.com> | 2023-11-26 03:59:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-26 22:59:18 +1100 |
| commit | 3ef06aa732ce8063e11b2f983592529883f7ecbc (patch) | |
| tree | 7fa143f938e711b6db1c2ed40c36298b8f7604c7 /keyboards/hadron | |
| parent | 4601f339e48b0116ca139dd06ce55ef0b9ed598f (diff) | |
Improve and Cleanup Shutdown callbacks (#21060)
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com>
Diffstat (limited to 'keyboards/hadron')
| -rw-r--r-- | keyboards/hadron/ver2/keymaps/side_numpad/keymap.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/keyboards/hadron/ver2/keymaps/side_numpad/keymap.c b/keyboards/hadron/ver2/keymaps/side_numpad/keymap.c index f352b1c851..9cc621df2f 100644 --- a/keyboards/hadron/ver2/keymaps/side_numpad/keymap.c +++ b/keyboards/hadron/ver2/keymaps/side_numpad/keymap.c | |||
| @@ -316,36 +316,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 316 | } | 316 | } |
| 317 | return true; | 317 | return true; |
| 318 | } | 318 | } |
| 319 | |||
| 320 | void matrix_init_user(void) { | ||
| 321 | #ifdef AUDIO_ENABLE | ||
| 322 | startup_user(); | ||
| 323 | #endif | ||
| 324 | } | ||
| 325 | |||
| 326 | #ifdef AUDIO_ENABLE | ||
| 327 | |||
| 328 | void startup_user(void) | ||
| 329 | { | ||
| 330 | _delay_ms(20); // gets rid of tick | ||
| 331 | PLAY_SONG(tone_startup); | ||
| 332 | } | ||
| 333 | |||
| 334 | void shutdown_user(void) | ||
| 335 | {cc | ||
| 336 | PLAY_SONG(tone_goodbye); | ||
| 337 | _delay_ms(150); | ||
| 338 | stop_all_notes(); | ||
| 339 | } | ||
| 340 | |||
| 341 | void music_on_user(void) | ||
| 342 | { | ||
| 343 | music_scale_user(); | ||
| 344 | } | ||
| 345 | |||
| 346 | void music_scale_user(void) | ||
| 347 | { | ||
| 348 | PLAY_SONG(music_scale); | ||
| 349 | } | ||
| 350 | |||
| 351 | #endif | ||
