numpad layout

This commit is contained in:
2025-05-10 21:27:51 +02:00
parent bc42f44d0d
commit 0dc84f2f5a
4 changed files with 98 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
{
"manufacturer": "rp2040-zero",
"keyboard_name": "numpad",
"maintainer": "Sam Hadow",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"rows": ["GP0", "GP1", "GP2", "GP3", "GP4", "GP5"],
"cols": ["GP6", "GP7", "GP8", "GP9"]
},
"processor": "RP2040",
"layouts": {
"LAYOUT": {
"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 },
{ "matrix": [1,1], "x": 1, "y": 1 },
{ "matrix": [1,2], "x": 2, "y": 1 },
{ "matrix": [1,3], "x": 3, "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": [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": [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": [5,0], "x": 0, "y": 5 },
{ "matrix": [5,1], "x": 1, "y": 5 },
{ "matrix": [5,2], "x": 2, "y": 5 },
{ "matrix": [5,3], "x": 3, "y": 5 }
]
}
},
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
}
}

View File

@@ -0,0 +1,30 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
*
* ┌───┬───┬───┬───┐
* │ESC│F1 │F2 │F3 │
* ├───┼───┼───┼───┤
* │NUM│ / │ * │ - │
* ├───┼───┼───┼───┤
* │ 7 │ 8 │ 9 │ │
* ├───┼───┼───┤ENT│
* │ 4 │ 5 │ 6 │ │
* ├───┼───┼───┼───┤
* │ 1 │ 2 │ 3 │ │
* ├───┴───┼───┤ + │
* │ 0 │ . │ │
* └───────┴───┴───┘
*/
[0] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3,
KC_NUM_LOCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS,
// row 3 (only cols 02 used)
KC_P4, KC_P5, KC_P6, KC_NO,
KC_P1, KC_P2, KC_P3, KC_PENT,
// row 5 (only cols 0 & 2 used)
KC_P0, KC_NO, KC_PDOT, KC_NO
)
};

View File

@@ -0,0 +1,6 @@
# numpad
6 rows, 4 columns numpad
* Keyboard Maintainer: [Sam Hadow](https://git.hadow.fr/sam.hadow)
* Hardware Supported: rp2040 zero