Added more comments
This commit is contained in:
parent
14275ff3f6
commit
8b17c06193
@ -134,7 +134,8 @@ char kp_keys[KP_ROWS][KP_COLS] = {
|
|||||||
|
|
||||||
Keypad kp_keypad = Keypad(makeKeymap(kp_keys), kp_rowPins, kp_colPins, KP_ROWS, KP_COLS);
|
Keypad kp_keypad = Keypad(makeKeymap(kp_keys), kp_rowPins, kp_colPins, KP_ROWS, KP_COLS);
|
||||||
|
|
||||||
/* Keymap config ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
/* Keymap config -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Valid "Fn0 (hold) key" when using tap mode are: KEY_LEFT_SHIFT, KEY_RIGHT_SHIFT, KEY_LEFT_CTRL, KEY_RIGHT_CTRL, KEY_RIGHT_ALT, KEY_LEFT_GUI, KEY_RIGHT_GUI, KEY_FN1, KEY_FN2
|
/* Valid "Fn0 (hold) key" when using tap mode are: KEY_LEFT_SHIFT, KEY_RIGHT_SHIFT, KEY_LEFT_CTRL, KEY_RIGHT_CTRL, KEY_RIGHT_ALT, KEY_LEFT_GUI, KEY_RIGHT_GUI, KEY_FN1, KEY_FN2
|
||||||
* "Button ID" corresponding with the physical design of the actual keyboard. DO NOT CHANGE BTN ID!
|
* "Button ID" corresponding with the physical design of the actual keyboard. DO NOT CHANGE BTN ID!
|
||||||
------------------------------------- -------------------------------------
|
------------------------------------- -------------------------------------
|
||||||
@ -144,6 +145,7 @@ Keypad kp_keypad = Keypad(makeKeymap(kp_keys), kp_rowPins, kp_colPins, KP_ROWS,
|
|||||||
------------------| 37 | 38 | 39 | | 40 | 41 | 42 |------------------
|
------------------| 37 | 38 | 39 | | 40 | 41 | 42 |------------------
|
||||||
------------------- -------------------
|
------------------- -------------------
|
||||||
* "Fn0 hold key" is normal key in non tap mode. In tap mode this key is the hold key.
|
* "Fn0 hold key" is normal key in non tap mode. In tap mode this key is the hold key.
|
||||||
|
* "Fn0 tap key" enables tap mode.
|
||||||
* "Fn1 key" is the layer 1 key to use. Don NOT add KEY_FN1 or KEY_FN2 to this layer.
|
* "Fn1 key" is the layer 1 key to use. Don NOT add KEY_FN1 or KEY_FN2 to this layer.
|
||||||
* "Fn2 key" is the layer 2 key to use. Don NOT add KEY_FN1 or KEY_FN2 to this layer.
|
* "Fn2 key" is the layer 2 key to use. Don NOT add KEY_FN1 or KEY_FN2 to this layer.
|
||||||
"Fn1 key" and "Fn2 key" are N/A when using tap mode and should me defined as NO_KEY.
|
"Fn1 key" and "Fn2 key" are N/A when using tap mode and should me defined as NO_KEY.
|
||||||
@ -197,8 +199,8 @@ Button buttons[NBR_OF_BUTTONS] =
|
|||||||
{40, KEY_FN1, KEY_SPACE, NO_KEY, NO_KEY, NO_KEY, true, {NO_KEY, NO_KEY, NO_KEY}, IDLE, false, 0, false, false, 0, 0, false},
|
{40, KEY_FN1, KEY_SPACE, NO_KEY, NO_KEY, NO_KEY, true, {NO_KEY, NO_KEY, NO_KEY}, IDLE, false, 0, false, false, 0, 0, false},
|
||||||
{41, KEY_COMBO, NO_KEY, KEY_COMBO, KEY_COMBO, NO_KEY, false, {KEY_FN1, KEY_RIGHT_ALT, NO_KEY}, IDLE, false, 0, false, false, 0, 0, false},
|
{41, KEY_COMBO, NO_KEY, KEY_COMBO, KEY_COMBO, NO_KEY, false, {KEY_FN1, KEY_RIGHT_ALT, NO_KEY}, IDLE, false, 0, false, false, 0, 0, false},
|
||||||
{42, KEY_LEFT_GUI, NO_KEY, KEY_LEFT_GUI, KEY_LEFT_GUI, NO_KEY, false, {NO_KEY, NO_KEY, NO_KEY}, IDLE, false, 0, false, false, 0, 0, false}};
|
{42, KEY_LEFT_GUI, NO_KEY, KEY_LEFT_GUI, KEY_LEFT_GUI, NO_KEY, false, {NO_KEY, NO_KEY, NO_KEY}, IDLE, false, 0, false, false, 0, 0, false}};
|
||||||
/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ */
|
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
/* End of keymap config -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
const int STATUS_LED = 13;
|
const int STATUS_LED = 13;
|
||||||
bool status_led_on = false;
|
bool status_led_on = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user