diff options
| author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-01-08 22:45:16 +0700 |
|---|---|---|
| committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2017-01-08 22:45:16 +0700 |
| commit | b0a9bd319bf5535e2762746da8ff77dd3cf87ca4 (patch) | |
| tree | 9af548bec57584f0f337777f794d7ccb444451a8 | |
| parent | 8a65c640ecdaacfd57b86b684ec80b481f5d4b3b (diff) | |
| download | qmk_firmware-b0a9bd319bf5535e2762746da8ff77dd3cf87ca4.tar.gz qmk_firmware-b0a9bd319bf5535e2762746da8ff77dd3cf87ca4.zip | |
om telolet om
| -rw-r--r-- | keyboards/planck/keymaps/priyadi/Makefile | 2 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/priyadi/keymap.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/keyboards/planck/keymaps/priyadi/Makefile b/keyboards/planck/keymaps/priyadi/Makefile index d9d4f3d1d..336608b8c 100644 --- a/keyboards/planck/keymaps/priyadi/Makefile +++ b/keyboards/planck/keymaps/priyadi/Makefile | |||
| @@ -10,7 +10,7 @@ COMMAND_ENABLE = no # Commands for debug and configuration | |||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 11 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 11 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 12 | MIDI_ENABLE = no # MIDI controls | 12 | MIDI_ENABLE = no # MIDI controls |
| 13 | AUDIO_ENABLE = yes # Audio output on port C6 | 13 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 14 | UNICODE_ENABLE = no # Unicode | 14 | UNICODE_ENABLE = no # Unicode |
| 15 | UNICODEMAP_ENABLE = yes # Unicode map | 15 | UNICODEMAP_ENABLE = yes # Unicode map |
| 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
diff --git a/keyboards/planck/keymaps/priyadi/keymap.c b/keyboards/planck/keymaps/priyadi/keymap.c index f0dafebf3..57fe86ff7 100644 --- a/keyboards/planck/keymaps/priyadi/keymap.c +++ b/keyboards/planck/keymaps/priyadi/keymap.c | |||
| @@ -11,6 +11,8 @@ | |||
| 11 | #include "process_unicode.h" | 11 | #include "process_unicode.h" |
| 12 | #include "quantum.h" | 12 | #include "quantum.h" |
| 13 | 13 | ||
| 14 | // #define TOLELOT_ENABLE | ||
| 15 | |||
| 14 | extern keymap_config_t keymap_config; | 16 | extern keymap_config_t keymap_config; |
| 15 | 17 | ||
| 16 | enum layers { | 18 | enum layers { |
| @@ -323,6 +325,7 @@ float tone_windows[][2] = SONG(SCROLL_LOCK_ON_SOUND); | |||
| 323 | float tone_osx[][2] = SONG(NUM_LOCK_ON_SOUND); | 325 | float tone_osx[][2] = SONG(NUM_LOCK_ON_SOUND); |
| 324 | float tone_click[][2] = SONG(MUSICAL_NOTE(_F3, 2)); | 326 | float tone_click[][2] = SONG(MUSICAL_NOTE(_F3, 2)); |
| 325 | float tone_release[][2] = SONG(MUSICAL_NOTE(_A3, 2)); | 327 | float tone_release[][2] = SONG(MUSICAL_NOTE(_A3, 2)); |
| 328 | float tone_tolelot[][2] = SONG(Q__NOTE(_E5), Q__NOTE(_C5), Q__NOTE(_D5)); | ||
| 326 | #endif | 329 | #endif |
| 327 | 330 | ||
| 328 | void persistant_default_layer_set(uint16_t default_layer) { | 331 | void persistant_default_layer_set(uint16_t default_layer) { |
| @@ -334,12 +337,18 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 334 | // faux clicky | 337 | // faux clicky |
| 335 | // if (record->event.pressed) PLAY_NOTE_ARRAY(tone_click, false, 0); | 338 | // if (record->event.pressed) PLAY_NOTE_ARRAY(tone_click, false, 0); |
| 336 | #ifdef AUDIO_ENABLE | 339 | #ifdef AUDIO_ENABLE |
| 340 | #ifdef TOLELOT_ENABLE | ||
| 341 | if (record->event.pressed) { | ||
| 342 | PLAY_NOTE_ARRAY(tone_tolelot, false, 0); | ||
| 343 | } | ||
| 344 | #else | ||
| 337 | if (record->event.pressed) { | 345 | if (record->event.pressed) { |
| 338 | PLAY_NOTE_ARRAY(tone_click, false, 0); | 346 | PLAY_NOTE_ARRAY(tone_click, false, 0); |
| 339 | } else { | 347 | } else { |
| 340 | PLAY_NOTE_ARRAY(tone_release, false, 0); | 348 | PLAY_NOTE_ARRAY(tone_release, false, 0); |
| 341 | } | 349 | } |
| 342 | #endif | 350 | #endif |
| 351 | #endif | ||
| 343 | 352 | ||
| 344 | switch (keycode) { | 353 | switch (keycode) { |
| 345 | // QWERTZ style comma and dot: semicolon and colon when shifted | 354 | // QWERTZ style comma and dot: semicolon and colon when shifted |
