Add layout description to keymap.c (#5810)

This commit is contained in:
Chuck Lauer Vose 2019-05-07 14:43:00 -07:00 committed by MechMerlin
parent 12e6d41202
commit c7f8548d9a

View file

@ -16,15 +16,26 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
| Knob 1: Vol Dn/Up | | Knob 2: Page Dn/Up |
| Press: Mute | Home | Press: Play/Pause |
| Hold: Layer 2 | Up | RGB Mode |
| Left | Down | Right |
*/
[0] = LAYOUT( [0] = LAYOUT(
KC_MUTE, KC_HOME, KC_MPLY, \ KC_MUTE, KC_HOME, KC_MPLY,
MO(1), KC_UP, RGB_MOD, \ MO(1) , KC_UP , RGB_MOD,
KC_LEFT, KC_DOWN, KC_RGHT \ KC_LEFT, KC_DOWN, KC_RGHT
), ),
/*
| RESET | N/A | Media Stop |
| Held: Layer 2 | Home | RGB Mode |
| Media Previous | End | Media Next |
*/
[1] = LAYOUT( [1] = LAYOUT(
RESET, BL_STEP, KC_STOP, \ RESET , BL_STEP, KC_STOP,
_______, KC_HOME, RGB_MOD, \ _______, KC_HOME, RGB_MOD,
KC_MPRV, KC_END, KC_MNXT \ KC_MPRV, KC_END , KC_MNXT
), ),
}; };