forked from mirrors/qmk_userspace
speaker working, midi out
This commit is contained in:
parent
d63c2e3995
commit
91176d854b
7 changed files with 130 additions and 124 deletions
|
@ -2,6 +2,7 @@
|
|||
#include "backlight.h"
|
||||
#include "action_layer.h"
|
||||
#include "keymap_midi.h"
|
||||
#include "beeps.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = { /* Qwerty */
|
||||
|
@ -58,15 +59,22 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|||
switch(id) {
|
||||
case 0:
|
||||
if (record->event.pressed) {
|
||||
// play_note(440, 20);
|
||||
// register_code(KC_RSFT);
|
||||
backlight_set(BACKLIGHT_LEVELS);
|
||||
default_layer_and(0);
|
||||
default_layer_or((1<<5));
|
||||
// note(0+12, 20);
|
||||
// note(0+24, 20);
|
||||
} else {
|
||||
// unregister_code(KC_RSFT);
|
||||
// stop_note();
|
||||
backlight_set(0);
|
||||
default_layer_and(0);
|
||||
default_layer_or(0);
|
||||
// note(0+24, 20);
|
||||
// note(0, 20);
|
||||
// play_note(4, 20);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue