diff options
Diffstat (limited to 'keyboards/planck/keymaps/handwired_binaryplease/keymap.c')
| -rw-r--r-- | keyboards/planck/keymaps/handwired_binaryplease/keymap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/planck/keymaps/handwired_binaryplease/keymap.c b/keyboards/planck/keymaps/handwired_binaryplease/keymap.c index 25a422dbb..b570ccfcd 100644 --- a/keyboards/planck/keymaps/handwired_binaryplease/keymap.c +++ b/keyboards/planck/keymaps/handwired_binaryplease/keymap.c | |||
| @@ -196,7 +196,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 196 | case QWERTY: | 196 | case QWERTY: |
| 197 | if (record->event.pressed) { | 197 | if (record->event.pressed) { |
| 198 | #ifdef AUDIO_ENABLE | 198 | #ifdef AUDIO_ENABLE |
| 199 | PLAY_NOTE_ARRAY(tone_qwerty, false, 0); | 199 | PLAY_SONG(tone_qwerty); |
| 200 | #endif | 200 | #endif |
| 201 | persistant_default_layer_set(1UL<<_QWERTY); | 201 | persistant_default_layer_set(1UL<<_QWERTY); |
| 202 | } | 202 | } |
| @@ -205,7 +205,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 205 | case COLEMAK: | 205 | case COLEMAK: |
| 206 | if (record->event.pressed) { | 206 | if (record->event.pressed) { |
| 207 | #ifdef AUDIO_ENABLE | 207 | #ifdef AUDIO_ENABLE |
| 208 | PLAY_NOTE_ARRAY(tone_colemak, false, 0); | 208 | PLAY_SONG(tone_colemak); |
| 209 | #endif | 209 | #endif |
| 210 | persistant_default_layer_set(1UL<<_COLEMAK); | 210 | persistant_default_layer_set(1UL<<_COLEMAK); |
| 211 | } | 211 | } |
| @@ -214,7 +214,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 214 | /*case DVORAK:*/ | 214 | /*case DVORAK:*/ |
| 215 | /*if (record->event.pressed) {*/ | 215 | /*if (record->event.pressed) {*/ |
| 216 | /*#ifdef AUDIO_ENABLE*/ | 216 | /*#ifdef AUDIO_ENABLE*/ |
| 217 | /*PLAY_NOTE_ARRAY(tone_dvorak, false, 0);*/ | 217 | /*PLAY_SONG(tone_dvorak);*/ |
| 218 | /*#endif*/ | 218 | /*#endif*/ |
| 219 | /*persistant_default_layer_set(1UL<<_DVORAK);*/ | 219 | /*persistant_default_layer_set(1UL<<_DVORAK);*/ |
| 220 | /*}*/ | 220 | /*}*/ |
| @@ -255,7 +255,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 255 | /*if (record->event.pressed) {*/ | 255 | /*if (record->event.pressed) {*/ |
| 256 | /*#ifdef AUDIO_ENABLE*/ | 256 | /*#ifdef AUDIO_ENABLE*/ |
| 257 | /*stop_all_notes();*/ | 257 | /*stop_all_notes();*/ |
| 258 | /*PLAY_NOTE_ARRAY(tone_plover, false, 0);*/ | 258 | /*PLAY_SONG(tone_plover);*/ |
| 259 | /*#endif*/ | 259 | /*#endif*/ |
| 260 | /*layer_off(_RAISE);*/ | 260 | /*layer_off(_RAISE);*/ |
| 261 | /*layer_off(_LOWER);*/ | 261 | /*layer_off(_LOWER);*/ |
| @@ -273,7 +273,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 273 | /*case EXT_PLV:*/ | 273 | /*case EXT_PLV:*/ |
| 274 | /*if (record->event.pressed) {*/ | 274 | /*if (record->event.pressed) {*/ |
| 275 | /*#ifdef AUDIO_ENABLE*/ | 275 | /*#ifdef AUDIO_ENABLE*/ |
| 276 | /*PLAY_NOTE_ARRAY(tone_plover_gb, false, 0);*/ | 276 | /*PLAY_SONG(tone_plover_gb);*/ |
| 277 | /*#endif*/ | 277 | /*#endif*/ |
| 278 | /*layer_off(_PLOVER);*/ | 278 | /*layer_off(_PLOVER);*/ |
| 279 | /*}*/ | 279 | /*}*/ |
| @@ -294,12 +294,12 @@ void matrix_init_user(void) { | |||
| 294 | void startup_user() | 294 | void startup_user() |
| 295 | { | 295 | { |
| 296 | _delay_ms(20); // gets rid of tick | 296 | _delay_ms(20); // gets rid of tick |
| 297 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | 297 | PLAY_SONG(tone_startup); |
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | void shutdown_user() | 300 | void shutdown_user() |
| 301 | { | 301 | { |
| 302 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | 302 | PLAY_SONG(tone_goodbye); |
| 303 | _delay_ms(150); | 303 | _delay_ms(150); |
| 304 | stop_all_notes(); | 304 | stop_all_notes(); |
| 305 | } | 305 | } |
| @@ -311,7 +311,7 @@ void music_on_user(void) | |||
| 311 | 311 | ||
| 312 | void music_scale_user(void) | 312 | void music_scale_user(void) |
| 313 | { | 313 | { |
| 314 | PLAY_NOTE_ARRAY(music_scale, false, 0); | 314 | PLAY_SONG(music_scale); |
| 315 | } | 315 | } |
| 316 | 316 | ||
| 317 | #endif | 317 | #endif |
