Configurator Support(info.json) for 1up Keyboards Sweet16 (#2570)
* Configurator Support - Add info.json to support existing layouts - Add comment in sweet16.h to remind people to change info.json if the layout changes. * Fix dlaroe's keymap
This commit is contained in:
parent
2d8fda614e
commit
1fbddc6613
3 changed files with 36 additions and 14 deletions
20
keyboards/sweet16/info.json
Normal file
20
keyboards/sweet16/info.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"keyboard_name": "Sweet 16",
|
||||||
|
"manufacturer": "1UP Keyboards",
|
||||||
|
"identifier": "",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"processor": "atmega32u4",
|
||||||
|
"bootloader": "atmel-dfu",
|
||||||
|
"width": 4,
|
||||||
|
"height": 4,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_ortho_4x4": {
|
||||||
|
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}]
|
||||||
|
},
|
||||||
|
|
||||||
|
"LAYOUT_numpad_4x4": {
|
||||||
|
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0, "h":2}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2, "h":2}, {"x":0, "y":3, "w":2}, {"x":2, "y":3}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -14,18 +14,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
KC_P4, KC_P5, KC_P6,
|
KC_P4, KC_P5, KC_P6,
|
||||||
KC_P1, KC_P2, KC_P3, KC_PENT,
|
KC_P1, KC_P2, KC_P3, KC_PENT,
|
||||||
LT(mouse, KC_P0), KC_DOT
|
LT(mouse, KC_P0), KC_DOT
|
||||||
)
|
),
|
||||||
|
|
||||||
[extra] = LAYOUT_numpad_4x4(
|
[extra] = LAYOUT_numpad_4x4(
|
||||||
KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS,
|
KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS,
|
||||||
KC_BSPC, KC_EXC, KC_DEL,
|
KC_BSPC, KC_EXECUTE, KC_DEL,
|
||||||
KC_LPRN, KC_RPRN, KC_PEQL, KC_PENT,
|
KC_LPRN, KC_RPRN, KC_PEQL, KC_PENT,
|
||||||
KC_TAB, KC_NLCK
|
KC_TAB, KC_NLCK
|
||||||
)
|
),
|
||||||
|
|
||||||
|
|
||||||
[mouse] = LAYOUT_numpad_4x4(
|
[mouse] = LAYOUT_numpad_4x4(
|
||||||
KC_MS_WH_D, KC_MS_U, KC_MS_WH_U, LT(extra, KC_PPLS),
|
KC_WH_D, KC_MS_U, KC_WH_U, LT(extra, KC_PPLS),
|
||||||
KC_MS_L, KC_MS_D, KC_MS_R,
|
KC_MS_L, KC_MS_D, KC_MS_R,
|
||||||
KC_BTN1, KC_BTN2, KC_BTN3, KC_PENT,
|
KC_BTN1, KC_BTN2, KC_BTN3, KC_PENT,
|
||||||
KC_TRNS, KC_DOT
|
KC_TRNS, KC_DOT
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
|
// Any changes to the layout names and/or definitions must also be made to info.json
|
||||||
|
|
||||||
#define LAYOUT_ortho_4x4( \
|
#define LAYOUT_ortho_4x4( \
|
||||||
K00, K01, K02, K03, \
|
K00, K01, K02, K03, \
|
||||||
K10, K11, K12, K13, \
|
K10, K11, K12, K13, \
|
||||||
|
@ -22,9 +24,9 @@
|
||||||
K31, K32 \
|
K31, K32 \
|
||||||
) { \
|
) { \
|
||||||
{ K00, K01, K02, K03 }, \
|
{ K00, K01, K02, K03 }, \
|
||||||
{ K10, K11, K12, K13 }, \
|
{ K10, K11, K12, KC_NO }, \
|
||||||
{ K20, K21, K22, K23 }, \
|
{ K20, K21, K22, K23 }, \
|
||||||
{ K30, K31, K32, K33 } \
|
{ KC_NO, K31, K32, KC_NO } \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in a new issue