Skip to content

Commit

Permalink
Keebio NyquistPad Layout Updates (qmk#22000)
Browse files Browse the repository at this point in the history
* Rename `LAYOUT` to `LAYOUT_ortho_5x6`

[refactor]

* Add `LAYOUT_ortho_5x6_1x2u`

[enhancement]
  • Loading branch information
noroadsleft authored and burkfers committed Sep 24, 2023
1 parent d612be3 commit 70a577b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
50 changes: 45 additions & 5 deletions keyboards/keebio/nyquistpad/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,40 +32,84 @@
"pin": "GP28"
},

"layout_aliases": {
"LAYOUT": "LAYOUT_ortho_5x6"
},
"layouts": {
"LAYOUT": {
"LAYOUT_ortho_5x6": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [0, 4], "x": 4, "y": 0},
{"matrix": [0, 5], "x": 5, "y": 0},

{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [1, 3], "x": 3, "y": 1},
{"matrix": [1, 4], "x": 4, "y": 1},
{"matrix": [1, 5], "x": 5, "y": 1},

{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [2, 3], "x": 3, "y": 2},
{"matrix": [2, 4], "x": 4, "y": 2},
{"matrix": [2, 5], "x": 5, "y": 2},

{"matrix": [3, 0], "x": 0, "y": 3},
{"matrix": [3, 1], "x": 1, "y": 3},
{"matrix": [3, 2], "x": 2, "y": 3},
{"matrix": [3, 3], "x": 3, "y": 3},
{"matrix": [3, 4], "x": 4, "y": 3},
{"matrix": [3, 5], "x": 5, "y": 3},

{"matrix": [4, 0], "x": 0, "y": 4},
{"matrix": [4, 1], "x": 1, "y": 4},
{"matrix": [4, 2], "x": 2, "y": 4},
{"matrix": [4, 3], "x": 3, "y": 4},
{"matrix": [4, 4], "x": 4, "y": 4},
{"matrix": [4, 5], "x": 5, "y": 4}
]
},
"LAYOUT_ortho_5x6_1x2u": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [0, 4], "x": 4, "y": 0},
{"matrix": [0, 5], "x": 5, "y": 0},

{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [1, 3], "x": 3, "y": 1},
{"matrix": [1, 4], "x": 4, "y": 1},
{"matrix": [1, 5], "x": 5, "y": 1},

{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [2, 3], "x": 3, "y": 2},
{"matrix": [2, 4], "x": 4, "y": 2},
{"matrix": [2, 5], "x": 5, "y": 2},

{"matrix": [3, 0], "x": 0, "y": 3},
{"matrix": [3, 1], "x": 1, "y": 3},
{"matrix": [3, 2], "x": 2, "y": 3},
{"matrix": [3, 3], "x": 3, "y": 3},
{"matrix": [3, 4], "x": 4, "y": 3},
{"matrix": [3, 5], "x": 5, "y": 3},

{"matrix": [4, 0], "x": 0, "y": 4},
{"matrix": [4, 1], "x": 1, "y": 4},
{"matrix": [4, 2], "x": 2, "y": 4},
{"matrix": [4, 3], "x": 3, "y": 4},
{"matrix": [4, 4], "x": 4, "y": 4, "w": 2}
]
}
},
"rgb_matrix": {
Expand Down Expand Up @@ -123,7 +167,6 @@
{ "flags": 4, "matrix": [0, 3], "x": 130, "y": 6 },
{ "flags": 4, "matrix": [0, 4], "x": 168, "y": 6 },
{ "flags": 4, "matrix": [0, 5], "x": 204, "y": 6 },

{ "flags": 4, "matrix": [1, 5], "x": 204, "y": 19 },
{ "flags": 2, "x": 186, "y": 12 },
{ "flags": 4, "matrix": [1, 4], "x": 168, "y": 19 },
Expand All @@ -132,14 +175,12 @@
{ "flags": 4, "matrix": [1, 1], "x": 56, "y": 19 },
{ "flags": 2, "x": 36, "y": 12 },
{ "flags": 4, "matrix": [1, 0], "x": 18, "y": 19 },

{ "flags": 4, "matrix": [2, 0], "x": 18, "y": 32 },
{ "flags": 4, "matrix": [2, 1], "x": 56, "y": 32 },
{ "flags": 4, "matrix": [2, 2], "x": 92, "y": 32 },
{ "flags": 4, "matrix": [2, 3], "x": 130, "y": 32 },
{ "flags": 4, "matrix": [2, 4], "x": 168, "y": 32 },
{ "flags": 4, "matrix": [2, 5], "x": 204, "y": 32 },

{ "flags": 4, "matrix": [3, 5], "x": 204, "y": 44 },
{ "flags": 2, "x": 186, "y": 44 },
{ "flags": 4, "matrix": [3, 4], "x": 168, "y": 44 },
Expand All @@ -149,7 +190,6 @@
{ "flags": 4, "matrix": [3, 1], "x": 56, "y": 44 },
{ "flags": 2, "x": 36, "y": 44 },
{ "flags": 4, "matrix": [3, 0], "x": 18, "y": 44 },

{ "flags": 4, "matrix": [4, 0], "x": 18, "y": 57 },
{ "flags": 4, "matrix": [4, 1], "x": 56, "y": 57 },
{ "flags": 4, "matrix": [4, 2], "x": 92, "y": 57 },
Expand Down
6 changes: 3 additions & 3 deletions keyboards/keebio/nyquistpad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT(
[0] = LAYOUT_ortho_5x6(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B,
MO(2), KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC
),
[1] = LAYOUT(
[1] = LAYOUT_ortho_5x6(
RGB_MOD, _______, _______, _______, _______, _______,
_______, _______, KC_UP, _______, KC_VOLU, KC_PGUP,
_______, KC_LEFT, KC_DOWN, KC_RGHT, KC_VOLD, KC_PGDN,
_______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______
),
[2] = LAYOUT(
[2] = LAYOUT_ortho_5x6(
KC_F6, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
_______, _______, _______, _______, _______, _______,
Expand Down
6 changes: 3 additions & 3 deletions keyboards/keebio/nyquistpad/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT(
[0] = LAYOUT_ortho_5x6(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B,
MO(2), KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC
),
[1] = LAYOUT(
[1] = LAYOUT_ortho_5x6(
RGB_MOD, _______, _______, _______, _______, _______,
_______, _______, KC_UP, _______, KC_VOLU, KC_PGUP,
_______, KC_LEFT, KC_DOWN, KC_RGHT, KC_VOLD, KC_PGDN,
_______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______
),
[2] = LAYOUT(
[2] = LAYOUT_ortho_5x6(
KC_F6, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
_______, _______, _______, _______, _______, _______,
Expand Down

0 comments on commit 70a577b

Please sign in to comment.