|
|
@ -435,28 +435,29 @@ void matrix_scan_quantum() {
|
|
|
|
|
|
|
|
|
|
|
|
matrix_scan_kb();
|
|
|
|
matrix_scan_kb();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
bool is_music_on(void) {
|
|
|
|
bool is_music_on(void) {
|
|
|
|
return (music_activated != 0);
|
|
|
|
return (music_activated != 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void music_toggle(void) {
|
|
|
|
void music_toggle(void) {
|
|
|
|
if (!music_activated) {
|
|
|
|
if (!music_activated) {
|
|
|
|
music_on();
|
|
|
|
music_on();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
music_off();
|
|
|
|
music_off();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void music_on(void) {
|
|
|
|
void music_on(void) {
|
|
|
|
music_activated = 1;
|
|
|
|
music_activated = 1;
|
|
|
|
music_on_user();
|
|
|
|
music_on_user();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void music_off(void) {
|
|
|
|
void music_off(void) {
|
|
|
|
music_activated = 0;
|
|
|
|
music_activated = 0;
|
|
|
|
stop_all_notes();
|
|
|
|
stop_all_notes();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
__attribute__ ((weak))
|
|
|
|
__attribute__ ((weak))
|
|
|
|
void music_on_user() {}
|
|
|
|
void music_on_user() {}
|