|
|
|
@ -15,7 +15,7 @@
|
|
|
|
|
#define _LOWER 3
|
|
|
|
|
#define _RAISE 4
|
|
|
|
|
#define _MUSIC 5
|
|
|
|
|
#define _ADJUST 6
|
|
|
|
|
#define _ADJUST 16
|
|
|
|
|
|
|
|
|
|
// Macro name shortcuts
|
|
|
|
|
#define QWERTY M(_QWERTY)
|
|
|
|
@ -142,6 +142,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
|
{_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/* Music (reserved for process_action_user)
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
[_MUSIC] = {
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX},
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX},
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX},
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX},
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, LOWER, XXXXXXX, XXXXXXX, RAISE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/* Adjust (Lower + Raise)
|
|
|
|
|
* ,-----------------------------------------------------------------------------------.
|
|
|
|
|
* | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
|
|
|
|
@ -161,19 +172,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
|
{_______, _______, _______, AUD_ON, AUD_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______},
|
|
|
|
|
{_______, _______, _______, MUS_ON, MUS_OFF, _______, _______, _______, _______, _______, _______, _______},
|
|
|
|
|
{_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/* Music (reserved for process_action_user)
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
[_MUSIC] = {
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX},
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX},
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX},
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX},
|
|
|
|
|
{XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, LOWER, XXXXXXX, XXXXXXX, RAISE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const uint16_t PROGMEM fn_actions[] = {
|
|
|
|
@ -315,7 +316,6 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
|
case 9:
|
|
|
|
|
if (record->event.pressed) {
|
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
|
init_notes();
|
|
|
|
|
PLAY_NOTE_ARRAY(music_scale, false, 0);
|
|
|
|
|
layer_on(_MUSIC);
|
|
|
|
|
#endif
|
|
|
|
@ -341,11 +341,12 @@ void process_action_user(keyrecord_t *record) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void matrix_init_user(void) {
|
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
|
init_notes();
|
|
|
|
|
_delay_ms(10);
|
|
|
|
|
PLAY_NOTE_ARRAY(start_up, false, 0);
|
|
|
|
|
#endif
|
|
|
|
|
play_startup_tone();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void play_startup_tone()
|
|
|
|
|
{
|
|
|
|
|
PLAY_NOTE_ARRAY(start_up, false, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void play_goodbye_tone()
|
|
|
|
|