forked from mirrors/qmk_userspace
handwired/arrow_pad Refactor and Configurator support (#4498)
* handwired/arrow_pad: layout macro and keymap refactor - Layout macros moved from the keymaps to arrow_pad.h. - LAYOUT_pad21 refactored to only accept keys that are physical present (no KC_NO entries required in keymap) - Keymaps now use #include QMK_KEYBOARD_H - Keymaps refactored to use process_record_user function (from action_get_macro) * handwired/arrow_pad: Readme cleanup Fixed the make commands and updated the layout macro. * handwired/arrow_pad: Configurator support
This commit is contained in:
parent
bada74e2a1
commit
952a30ef34
6 changed files with 265 additions and 296 deletions
|
@ -10,4 +10,34 @@
|
|||
#include <avr/io.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// This is the 21-key keypad to 4x6 element matrix mapping
|
||||
#define LAYOUT( \
|
||||
KM_ESC, KM_TAB, KM_BSL, KM_ARR, \
|
||||
KM_NUM, KM_FSL, KM_AST, KM_MIN, \
|
||||
KM___7, KM___8, KM___9, KM_EQU, \
|
||||
KM___4, KM___5, KM___6, KM_PLS, \
|
||||
KM___1, KM___2, KM___3, ___ENT, \
|
||||
KM___0, _____0, KM_DOT, KM_ENT \
|
||||
) { \
|
||||
{ KM_ESC, KM_TAB, KM_BSL, KM_ARR }, \
|
||||
{ KM_NUM, KM_FSL, KM_AST, KM_MIN }, \
|
||||
{ KM___7, KM___8, KM___9, KM_EQU }, \
|
||||
{ KM___4, KM___5, KM___6, KM_PLS }, \
|
||||
{ KM___1, KM___2, KM___3, KC_NO }, \
|
||||
{ KM___0, KC_NO, KM_DOT, KM_ENT } \
|
||||
}
|
||||
|
||||
// This is the 21-key keypad to 2x11 element matrix mapping
|
||||
#define LAYOUT_pad21( \
|
||||
KM_ESC, KM_TAB, KM_BSL, KM_ARR, \
|
||||
KM_NUM, KM_FSL, KM_AST, KM_MIN, \
|
||||
KM___7, KM___8, KM___9, \
|
||||
KM___4, KM___5, KM___6, KM_PLS, \
|
||||
KM___1, KM___2, KM___3, \
|
||||
KM___0, KM_DOT, KM_ENT \
|
||||
) { \
|
||||
{ KM_ESC, KM_TAB, KM_BSL, KM_ARR, KM___7, KM___8, KM___9, KM_PLS, KM___1, KM___2, KM___3, }, \
|
||||
{ KM_NUM, KM_FSL, KM_AST, KM_MIN, KM___4, KM___5, KM___6, KM_ENT, KC_NO, KM___0, KM_DOT, }, \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue