[Keyboard] YMDK NP21: matrix and keymap refactor (#8112)
* YMDK NP21: matrix and keymap refactor - refactored layout macros - LAYOUT_ortho_6x4 orients the keyboard with the USB port to the back instead of to the right - LAYOUT uses the previous sideways orientation (included for backwards compatibility) - removed redundant includes from ymdk_np21.h - added a readme for the default keymap * add Configurator layout supportrefactor_process_record_kb_user
parent
43c0a9293e
commit
b62829031d
@ -0,0 +1,69 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "YMDK NP21",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_ortho_6x4": {
|
||||||
|
"width": 4,
|
||||||
|
"height": 6.25,
|
||||||
|
"key_count": 24,
|
||||||
|
"layout": [
|
||||||
|
{"label":"K06", "x":0, "y":0},
|
||||||
|
{"label":"K16", "x":1, "y":0},
|
||||||
|
{"label":"K26", "x":2, "y":0},
|
||||||
|
{"label":"K36", "x":3, "y":0},
|
||||||
|
{"label":"K05", "x":0, "y":1.25},
|
||||||
|
{"label":"K15", "x":1, "y":1.25},
|
||||||
|
{"label":"K25", "x":2, "y":1.25},
|
||||||
|
{"label":"K35", "x":3, "y":1.25},
|
||||||
|
{"label":"K04", "x":0, "y":2.25},
|
||||||
|
{"label":"K14", "x":1, "y":2.25},
|
||||||
|
{"label":"K24", "x":2, "y":2.25},
|
||||||
|
{"label":"K34", "x":3, "y":2.25},
|
||||||
|
{"label":"K03", "x":0, "y":3.25},
|
||||||
|
{"label":"K13", "x":1, "y":3.25},
|
||||||
|
{"label":"K23", "x":2, "y":3.25},
|
||||||
|
{"label":"K33", "x":3, "y":3.25},
|
||||||
|
{"label":"K02", "x":0, "y":4.25},
|
||||||
|
{"label":"K12", "x":1, "y":4.25},
|
||||||
|
{"label":"K22", "x":2, "y":4.25},
|
||||||
|
{"label":"K32", "x":3, "y":4.25},
|
||||||
|
{"label":"K01", "x":0, "y":5.25},
|
||||||
|
{"label":"K11", "x":1, "y":5.25},
|
||||||
|
{"label":"K21", "x":2, "y":5.25},
|
||||||
|
{"label":"K31", "x":3, "y":5.25}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT": {
|
||||||
|
"width": 6.25,
|
||||||
|
"height": 4,
|
||||||
|
"key_count": 24,
|
||||||
|
"layout": [
|
||||||
|
{"label":"K01", "x":0, "y":0},
|
||||||
|
{"label":"K02", "x":1, "y":0},
|
||||||
|
{"label":"K03", "x":2, "y":0},
|
||||||
|
{"label":"K04", "x":3, "y":0},
|
||||||
|
{"label":"K05", "x":4, "y":0},
|
||||||
|
{"label":"K06", "x":5.25, "y":0},
|
||||||
|
{"label":"K11", "x":0, "y":1},
|
||||||
|
{"label":"K12", "x":1, "y":1},
|
||||||
|
{"label":"K13", "x":2, "y":1},
|
||||||
|
{"label":"K14", "x":3, "y":1},
|
||||||
|
{"label":"K15", "x":4, "y":1},
|
||||||
|
{"label":"K16", "x":5.25, "y":1},
|
||||||
|
{"label":"K21", "x":0, "y":2},
|
||||||
|
{"label":"K22", "x":1, "y":2},
|
||||||
|
{"label":"K23", "x":2, "y":2},
|
||||||
|
{"label":"K24", "x":3, "y":2},
|
||||||
|
{"label":"K25", "x":4, "y":2},
|
||||||
|
{"label":"K26", "x":5.25, "y":2},
|
||||||
|
{"label":"K31", "x":0, "y":3},
|
||||||
|
{"label":"K32", "x":1, "y":3},
|
||||||
|
{"label":"K33", "x":2, "y":3},
|
||||||
|
{"label":"K34", "x":3, "y":3},
|
||||||
|
{"label":"K35", "x":4, "y":3},
|
||||||
|
{"label":"K36", "x":5.25, "y":3}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
# default
|
||||||
|
|
||||||
|
The default keymap for the YMDK NP21 keypad.
|
||||||
|
|
||||||
|
Base Layer Function Layer
|
||||||
|
.-----. .-----.
|
||||||
|
| USB | | USB |
|
||||||
|
,-------------------------------. ,-------------------------------.
|
||||||
|
| Esc | Tab | Back | Fn | | | | |▒▒▒▒▒▒▒|
|
||||||
|
| | | Space | | | | | |▒▒▒▒▒▒▒|
|
||||||
|
|-------+-------+-------+-------| |-------+-------+-------+-------|
|
||||||
|
| Num | / | * | - | | | | | |
|
||||||
|
| Lock | | | | | | | | |
|
||||||
|
|-------+-------+-------+-------| |-------+-------+-------+-------|
|
||||||
|
| 7 | 8 | 9 | + | | | BL | | BL |
|
||||||
|
| Home | Up | PgUp | | | | On | | Inc |
|
||||||
|
|-------+-------+-------+-------| |-------+-------+-------+-------|
|
||||||
|
| 4 | 5 | 6 | + | | | BL | | BL |
|
||||||
|
| Left | | Right | | | | Togg | | Inc |
|
||||||
|
|-------+-------+-------+-------| |-------+-------+-------+-------|
|
||||||
|
| 1 | 2 | 3 | Ent | | | BL | | BL |
|
||||||
|
| End | Down | PgDn | | | | Off | | Dec |
|
||||||
|
|-------+-------+-------+-------| |-------+-------+-------+-------|
|
||||||
|
| 0 | . | . | Ent | | BL | | | BL |
|
||||||
|
| Ins | | Del | | | Brthg | | | Dec |
|
||||||
|
`-------------------------------' `-------------------------------'
|
Loading…
Reference in New Issue