handwired/numpad20 Refactor and Configurator support (#4589)
* handwired/numpad20: refactor - layout macro no longer auto-prepends keycodes with KC_ - keymaps for this keyboard will now compile in QMK Configurator - keymap now uses #include QMK_KEYBOARD_H - deleted unused fn_actions code block * handwired/numpad20: Configurator supportpull/4628/head
parent
d46d304395
commit
8b6cdd1788
@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "numpad20 handwired",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"width": 4,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"K00", "x":0, "y":0},
|
||||||
|
{"label":"K01", "x":1, "y":0},
|
||||||
|
{"label":"K02", "x":2, "y":0},
|
||||||
|
{"label":"K03", "x":3, "y":0},
|
||||||
|
{"label":"K10", "x":0, "y":1},
|
||||||
|
{"label":"K11", "x":1, "y":1},
|
||||||
|
{"label":"K12", "x":2, "y":1},
|
||||||
|
{"label":"K13", "x":3, "y":1},
|
||||||
|
{"label":"K20", "x":0, "y":2},
|
||||||
|
{"label":"K21", "x":1, "y":2},
|
||||||
|
{"label":"K22", "x":2, "y":2},
|
||||||
|
{"label":"K23", "x":3, "y":2},
|
||||||
|
{"label":"K30", "x":0, "y":3},
|
||||||
|
{"label":"K31", "x":1, "y":3},
|
||||||
|
{"label":"K32", "x":2, "y":3},
|
||||||
|
{"label":"K33", "x":3, "y":3},
|
||||||
|
{"label":"K40", "x":0, "y":4},
|
||||||
|
{"label":"K41", "x":1, "y":4},
|
||||||
|
{"label":"K42", "x":2, "y":4},
|
||||||
|
{"label":"K43", "x":3, "y":4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,16 +1,11 @@
|
|||||||
#include "numpad20.h"
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
#define KC_ KC_TRNS
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[0] = LAYOUT(
|
[0] = LAYOUT(
|
||||||
LEFT,RGHT, UP ,DOWN, \
|
KC_LEFT, KC_RGHT, KC_UP, KC_DOWN, \
|
||||||
P7 , P8 , P9 ,PLUS, \
|
KC_P7, KC_P8, KC_P9, KC_PLUS, \
|
||||||
P4 , P5 , P6 ,MINS, \
|
KC_P4, KC_P5, KC_P6, KC_MINS, \
|
||||||
P1 , P2 , P3 , ENT, \
|
KC_P1, KC_P2, KC_P3, KC_ENT, \
|
||||||
P0 ,DOT ,RGHT, TAB \
|
KC_P0, KC_DOT, KC_RGHT, KC_TAB \
|
||||||
)
|
)
|
||||||
};
|
|
||||||
|
|
||||||
const uint16_t PROGMEM fn_actions[] = {
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in new issue