1
0
Fork 0

[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:
Drashna Jael're 2019-07-28 10:56:35 -07:00 committed by GitHub
parent bbdc82dd36
commit c9424eb8d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 33 additions and 413 deletions

View file

@ -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
}