summaryrefslogtreecommitdiffstats
path: root/keyboard/planck/extended_keymaps/extended_keymap_default.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2015-08-21 23:14:48 -0400
committerJack Humbert <jack.humb@gmail.com>2015-08-21 23:14:48 -0400
commit476e29d1190ac45b810109512bbb50cc4769493b (patch)
tree1d493bae3b0ae91a6202918aa1bf53fb0da936fa /keyboard/planck/extended_keymaps/extended_keymap_default.c
parent2d76b5c3d421c984f6b4b9da757383cc87e3f808 (diff)
parentb191f8c60fbbaf1fb55d67edb86a6c33489b2ce3 (diff)
Merge pull request #26 from jackhumbert/midi
Midi
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;
}