aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-01-08 22:45:16 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-01-08 22:45:16 +0700
commitb0a9bd319bf5535e2762746da8ff77dd3cf87ca4 (patch)
tree9af548bec57584f0f337777f794d7ccb444451a8
parent8a65c640ecdaacfd57b86b684ec80b481f5d4b3b (diff)
downloadqmk_firmware-b0a9bd319bf5535e2762746da8ff77dd3cf87ca4.tar.gz
qmk_firmware-b0a9bd319bf5535e2762746da8ff77dd3cf87ca4.zip
om telolet om
-rw-r--r--keyboards/planck/keymaps/priyadi/Makefile2
-rw-r--r--keyboards/planck/keymaps/priyadi/keymap.c9
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
10NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 10NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 11BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls 12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = yes # Audio output on port C6 13AUDIO_ENABLE = yes # Audio output on port C6
14UNICODE_ENABLE = no # Unicode 14UNICODE_ENABLE = no # Unicode
15UNICODEMAP_ENABLE = yes # Unicode map 15UNICODEMAP_ENABLE = yes # Unicode map
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 16BLUETOOTH_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
14extern keymap_config_t keymap_config; 16extern keymap_config_t keymap_config;
15 17
16enum layers { 18enum layers {
@@ -323,6 +325,7 @@ float tone_windows[][2] = SONG(SCROLL_LOCK_ON_SOUND);
323float tone_osx[][2] = SONG(NUM_LOCK_ON_SOUND); 325float tone_osx[][2] = SONG(NUM_LOCK_ON_SOUND);
324float tone_click[][2] = SONG(MUSICAL_NOTE(_F3, 2)); 326float tone_click[][2] = SONG(MUSICAL_NOTE(_F3, 2));
325float tone_release[][2] = SONG(MUSICAL_NOTE(_A3, 2)); 327float tone_release[][2] = SONG(MUSICAL_NOTE(_A3, 2));
328float tone_tolelot[][2] = SONG(Q__NOTE(_E5), Q__NOTE(_C5), Q__NOTE(_D5));
326#endif 329#endif
327 330
328void persistant_default_layer_set(uint16_t default_layer) { 331void 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