Skip to content

Commit 504533b

Browse files
authored
Add pad9 keyboard (qmk#26051)
1 parent ba9642c commit 504533b

4 files changed

Lines changed: 93 additions & 0 deletions

File tree

keyboards/pad9/keyboard.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"manufacturer": "prkrln",
3+
"keyboard_name": "pad9",
4+
"maintainer": "prkrln",
5+
"diode_direction": "COL2ROW",
6+
"bootloader": "rp2040",
7+
"processor": "RP2040",
8+
"features": {
9+
"bootmagic": true,
10+
"encoder": true,
11+
"extrakey": true,
12+
"mousekey": true,
13+
"nkro": true
14+
},
15+
"encoder": {
16+
"rotary": [
17+
{"pin_a": "GP27", "pin_b": "GP26"}
18+
]
19+
},
20+
"matrix_pins": {
21+
"direct": [
22+
["GP6", "GP1", "GP3"],
23+
["GP29", "GP7", "GP4"],
24+
["GP28", "GP0", "GP2"]
25+
]
26+
},
27+
"usb": {
28+
"device_version": "1.0.0",
29+
"pid": "0x5009",
30+
"vid": "0x504B"
31+
},
32+
"community_layouts": ["ortho_3x3"],
33+
"layouts": {
34+
"LAYOUT_ortho_3x3": {
35+
"layout": [
36+
{"matrix": [0, 0], "x": 0, "y": 0, "encoder": 0},
37+
{"matrix": [0, 1], "x": 1, "y": 0},
38+
{"matrix": [0, 2], "x": 2, "y": 0},
39+
{"matrix": [1, 0], "x": 0, "y": 1},
40+
{"matrix": [1, 1], "x": 1, "y": 1},
41+
{"matrix": [1, 2], "x": 2, "y": 1},
42+
{"matrix": [2, 0], "x": 0, "y": 2},
43+
{"matrix": [2, 1], "x": 1, "y": 2},
44+
{"matrix": [2, 2], "x": 2, "y": 2}
45+
]
46+
}
47+
}
48+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2023 QMK
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
#if defined(ENCODER_MAP_ENABLE)
7+
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
8+
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
9+
};
10+
#endif
11+
12+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
13+
[0] = LAYOUT_ortho_3x3(
14+
KC_1, KC_2, KC_3,
15+
KC_4, KC_5, KC_6,
16+
KC_7, KC_8, KC_9
17+
)
18+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ENCODER_MAP_ENABLE = yes

keyboards/pad9/readme.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# pad9
2+
3+
![pad9](https://github.com/prkrln/pad9/blob/main/pad9.jpg)
4+
A cheap small macropad with the mcu underneath the switches.
5+
6+
* Keyboard Maintainer: [prkrln](https://github.com/prkrln)
7+
* Hardware Supported: [XAIO RP2040](https://wiki.seeedstudio.com/XIAO-RP2040)
8+
* Hardware Availability: [Seeed](https://www.seeedstudio.com/XIAO-RP2040-v1-0-p-5026.html), [Digikey](https://www.digikey.com/en/products/detail/seeed-technology-co-ltd/102010428/14672129)
9+
10+
Make example for this keyboard (after setting up your build environment):
11+
12+
make pad9:default
13+
14+
Flashing example for this keyboard:
15+
16+
make pad9:default:flash
17+
18+
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
19+
20+
## Bootloader
21+
22+
Enter the bootloader in 3 ways:
23+
24+
* **Bootmagic reset**: Hold down the encoder or top left key and plug in the keyboard
25+
* **Physical reset button**: Briefly press the button on the back of the MCU
26+
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

0 commit comments

Comments
 (0)