summaryrefslogtreecommitdiffstats
path: root/keyboard/planck/extended_keymaps/extended_keymap_default.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/planck/extended_keymaps/extended_keymap_default.c')
-rw-r--r--keyboard/planck/extended_keymaps/extended_keymap_default.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboard/planck/extended_keymaps/extended_keymap_default.c b/keyboard/planck/extended_keymaps/extended_keymap_default.c
index 1d5ac4321b..c75144bf4a 100644
--- a/keyboard/planck/extended_keymaps/extended_keymap_default.c
+++ b/keyboard/planck/extended_keymaps/extended_keymap_default.c
@@ -1,5 +1,7 @@
#include "extended_keymap_common.h"
#include "backlight.h"
+#include "lufa.h"
+#include "debug.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = { /* Qwerty */
@@ -51,9 +53,11 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
case 0:
if (record->event.pressed) {
register_code(KC_RSFT);
+ midi_send_noteon(&midi_device, 1, 64, 127);
backlight_step();
} else {
unregister_code(KC_RSFT);
+ midi_send_noteoff(&midi_device, 1, 64, 127);
}
break;
}