[Keyboard] Fix up and clean Corne Keyboard code (#6284)
* Fix corne communication issues with LTO * Fix up other issues with corne code * Fix indentation * Clang Format rev1 file for Corne
This commit is contained in:
parent
bbdc82dd36
commit
c9424eb8d7
9 changed files with 33 additions and 413 deletions
|
@ -1,11 +1,6 @@
|
|||
#include "crkbd.h"
|
||||
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
float tone_startup[][2] = SONG(STARTUP_SOUND);
|
||||
float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
|
||||
#endif
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
// Logical Layout
|
||||
|
@ -104,22 +99,4 @@ led_config_t g_led_config = { {
|
|||
4, 4, 1, 1, 1
|
||||
} };
|
||||
#endif
|
||||
|
||||
#endif
|
||||
void matrix_init_kb(void) {
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
_delay_ms(20); // gets rid of tick
|
||||
PLAY_SONG(tone_startup);
|
||||
#endif
|
||||
|
||||
matrix_init_user();
|
||||
};
|
||||
|
||||
void shutdown_kb(void) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_goodbye);
|
||||
_delay_ms(150);
|
||||
stop_all_notes();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue