Skip to content

Commit

Permalink
pearlboards/zeuspad: add additional layouts (qmk#24066)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and nuess0r committed Sep 8, 2024
1 parent eb07ca5 commit 4f071b8
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 20 deletions.
36 changes: 35 additions & 1 deletion keyboards/pearlboards/zeuspad/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"debounce": 0,
"community_layouts": ["numpad_6x4"],
"layout_aliases": {
"LAYOUT_all": "LAYOUT_ortho_6x4"
},
"layouts": {
"LAYOUT_all": {
"LAYOUT_ortho_6x4": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
Expand Down Expand Up @@ -94,6 +98,36 @@
{"matrix": [5, 2], "x": 2, "y": 5.25},
{"matrix": [5, 3], "x": 3, "y": 5.25}
]
},
"LAYOUT_numpad_6x4": {
"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": [1, 0], "x": 0, "y": 1.25},
{"matrix": [1, 1], "x": 1, "y": 1.25},
{"matrix": [1, 2], "x": 2, "y": 1.25},
{"matrix": [1, 3], "x": 3, "y": 1.25},

{"matrix": [2, 0], "x": 0, "y": 2.25},
{"matrix": [2, 1], "x": 1, "y": 2.25},
{"matrix": [2, 2], "x": 2, "y": 2.25},

{"matrix": [3, 0], "x": 0, "y": 3.25},
{"matrix": [3, 1], "x": 1, "y": 3.25},
{"matrix": [3, 2], "x": 2, "y": 3.25},
{"matrix": [3, 3], "x": 3, "y": 2.25, "h": 2},

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

{"matrix": [5, 0], "x": 0, "y": 5.25, "w": 2},
{"matrix": [5, 2], "x": 2, "y": 5.25},
{"matrix": [5, 3], "x": 3, "y": 4.25, "h": 2}
]
}
}
}
4 changes: 2 additions & 2 deletions keyboards/pearlboards/zeuspad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all(
[0] = LAYOUT_ortho_6x4(
LT(1, KC_ESC), KC_LCTL, KC_LALT, KC_MEDIA_PLAY_PAUSE,
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, KC_P0, KC_PDOT, KC_PENT),

[1] = LAYOUT_all(
[1] = LAYOUT_ortho_6x4(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
QK_BOOT, RGB_TOG, RGB_MOD, RGB_HUI,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
Expand Down
18 changes: 1 addition & 17 deletions keyboards/pearlboards/zeuspad/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
Expand All @@ -33,20 +33,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),

[2] = LAYOUT_all(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),

[3] = LAYOUT_all(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
};
21 changes: 21 additions & 0 deletions keyboards/pearlboards/zeuspad/matrix_diagram.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Matrix Diagram for Pearl Boards Zeuspad

```
┌───┬───┬───┬───┐
│00 │01 │02 │03 │
└───┴───┴───┴───┘
┌───┬───┬───┬───┐
│10 │11 │12 │13 │
├───┼───┼───┼───┤┌───┐
│20 │21 │22 │23 ││33 │
├───┼───┼───┼───┤│ │ 2uh +
│30 │31 │32 │33 ││ │
├───┼───┼───┼───┤├───┤
│40 │41 │42 │43 ││53 │
├───┼───┼───┼───┤│ │ 2uh Enter
│50 │51 │52 │53 ││ │
└───┴───┴───┴───┘└───┘
┌───────┐
│50 │ 2u P0
└───────┘
```

0 comments on commit 4f071b8

Please sign in to comment.