aboutsummaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/unicode/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/planck/keymaps/unicode/keymap.c')
-rw-r--r--keyboards/planck/keymaps/unicode/keymap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/planck/keymaps/unicode/keymap.c b/keyboards/planck/keymaps/unicode/keymap.c
index 51b980e08..4674be066 100644
--- a/keyboards/planck/keymaps/unicode/keymap.c
+++ b/keyboards/planck/keymaps/unicode/keymap.c
@@ -220,7 +220,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
220 case _QWERTY: 220 case _QWERTY:
221 if (record->event.pressed) { 221 if (record->event.pressed) {
222 #ifdef AUDIO_ENABLE 222 #ifdef AUDIO_ENABLE
223 PLAY_NOTE_ARRAY(tone_qwerty, false, 0); 223 PLAY_SONG(tone_qwerty);
224 #endif 224 #endif
225 persistent_default_layer_set(1UL<<_QWERTY); 225 persistent_default_layer_set(1UL<<_QWERTY);
226 } 226 }
@@ -228,7 +228,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
228 case _COLEMAK: 228 case _COLEMAK:
229 if (record->event.pressed) { 229 if (record->event.pressed) {
230 #ifdef AUDIO_ENABLE 230 #ifdef AUDIO_ENABLE
231 PLAY_NOTE_ARRAY(tone_colemak, false, 0); 231 PLAY_SONG(tone_colemak);
232 #endif 232 #endif
233 persistent_default_layer_set(1UL<<_COLEMAK); 233 persistent_default_layer_set(1UL<<_COLEMAK);
234 } 234 }
@@ -236,7 +236,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
236 case _DVORAK: 236 case _DVORAK:
237 if (record->event.pressed) { 237 if (record->event.pressed) {
238 #ifdef AUDIO_ENABLE 238 #ifdef AUDIO_ENABLE
239 PLAY_NOTE_ARRAY(tone_dvorak, false, 0); 239 PLAY_SONG(tone_dvorak);
240 #endif 240 #endif
241 persistent_default_layer_set(1UL<<_DVORAK); 241 persistent_default_layer_set(1UL<<_DVORAK);
242 } 242 }
@@ -273,7 +273,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
273 if (record->event.pressed) { 273 if (record->event.pressed) {
274 #ifdef AUDIO_ENABLE 274 #ifdef AUDIO_ENABLE
275 stop_all_notes(); 275 stop_all_notes();
276 PLAY_NOTE_ARRAY(tone_plover, false, 0); 276 PLAY_SONG(tone_plover);
277 #endif 277 #endif
278 layer_off(_RAISE); 278 layer_off(_RAISE);
279 layer_off(_LOWER); 279 layer_off(_LOWER);
@@ -290,7 +290,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
290 case 13: 290 case 13:
291 if (record->event.pressed) { 291 if (record->event.pressed) {
292 #ifdef AUDIO_ENABLE 292 #ifdef AUDIO_ENABLE
293 PLAY_NOTE_ARRAY(tone_plover_gb, false, 0); 293 PLAY_SONG(tone_plover_gb);
294 #endif 294 #endif
295 layer_off(_PLOVER); 295 layer_off(_PLOVER);
296 } 296 }
@@ -315,12 +315,12 @@ void matrix_init_user(void) {
315void startup_user() 315void startup_user()
316{ 316{
317 _delay_ms(20); // gets rid of tick 317 _delay_ms(20); // gets rid of tick
318 PLAY_NOTE_ARRAY(tone_startup, false, 0); 318 PLAY_SONG(tone_startup);
319} 319}
320 320
321void shutdown_user() 321void shutdown_user()
322{ 322{
323 PLAY_NOTE_ARRAY(tone_goodbye, false, 0); 323 PLAY_SONG(tone_goodbye);
324 _delay_ms(150); 324 _delay_ms(150);
325 stop_all_notes(); 325 stop_all_notes();
326} 326}
@@ -332,7 +332,7 @@ void music_on_user(void)
332 332
333void music_scale_user(void) 333void music_scale_user(void)
334{ 334{
335 PLAY_NOTE_ARRAY(music_scale, false, 0); 335 PLAY_SONG(music_scale);
336} 336}
337 337
338#endif 338#endif