Skip to content

Commit 9e757bc

Browse files
authored
[Keyboard] Add togkey/pad_pocket (#25470)
* Initial Source for Pad Pocket * Added Tap Dance and Combo Configurations * Updated LED Count * Updated read me * Updated Readme * -Removed config.h file - Added tap dance and combos to keymap level - Removed tap dance and combos from keyboard.json - Fixed conflict with submodules * Fixed Formatting
1 parent c3773d9 commit 9e757bc

4 files changed

Lines changed: 107 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"manufacturer": "TogKey",
3+
"keyboard_name": "Pad Pocket",
4+
"maintainer": "togkey86",
5+
"development_board": "promicro_rp2040",
6+
"diode_direction": "COL2ROW",
7+
"features": {
8+
"bootmagic": true,
9+
"extrakey": true,
10+
"rgblight": true
11+
},
12+
"matrix_pins": {
13+
"cols": ["GP29", "GP22"],
14+
"rows": ["GP26"]
15+
},
16+
"rgblight": {
17+
"animations": {
18+
"alternating": true,
19+
"breathing": true,
20+
"christmas": true,
21+
"knight": true,
22+
"rainbow_mood": true,
23+
"rainbow_swirl": true,
24+
"snake": true,
25+
"static_gradient": true,
26+
"twinkle": true
27+
},
28+
"hue_steps": 10,
29+
"led_count": 2
30+
},
31+
"url": "https://togkey.com/products/togkey-pad-pocket",
32+
"usb": {
33+
"device_version": "1.0.0",
34+
"pid": "0x8688",
35+
"vid": "0xFEED"
36+
},
37+
"ws2812": {
38+
"driver": "vendor",
39+
"pin": "GP21"
40+
},
41+
"layouts": {
42+
"LAYOUT": {
43+
"layout": [
44+
{"matrix": [0, 0], "x": 0, "y": 0},
45+
{"matrix": [0, 1], "x": 1, "y": 0}
46+
]
47+
}
48+
}
49+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2025 TogKey
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
//Tap Dances
7+
enum {
8+
TD_VOLDOWN_MEDIAPREV,
9+
TD_VOLUP_MEDIANEXT
10+
};
11+
12+
tap_dance_action_t tap_dance_actions[] = {
13+
[TD_VOLDOWN_MEDIAPREV] = ACTION_TAP_DANCE_DOUBLE(KC_AUDIO_VOL_DOWN, KC_MEDIA_PREV_TRACK),
14+
[TD_VOLUP_MEDIANEXT] = ACTION_TAP_DANCE_DOUBLE(KC_AUDIO_VOL_UP, KC_MEDIA_NEXT_TRACK)
15+
};
16+
17+
//Combos
18+
const uint16_t PROGMEM media_combo[] = {TD(TD_VOLDOWN_MEDIAPREV), TD(TD_VOLUP_MEDIANEXT), COMBO_END};
19+
20+
combo_t key_combos[] = {
21+
COMBO(media_combo, KC_MEDIA_PLAY_PAUSE)
22+
};
23+
24+
//Keymap
25+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26+
[0] = LAYOUT(
27+
TD(TD_VOLDOWN_MEDIAPREV), TD(TD_VOLUP_MEDIANEXT)
28+
)
29+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
COMBO_ENABLE = yes
2+
TAP_DANCE_ENABLE = yes
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# pad_pocket
2+
3+
![pad_pocket](https://i.imgur.com/yCrqAe5.jpeg)
4+
5+
A simple 2-Key Macropad Keychain based off an RP2040 Development Board and a custom PCB that is pre-programmed to control media.
6+
7+
* Keyboard Maintainer: [Jon Henry](https://github.com/togkey86)
8+
* Hardware Supported: Togkey Pad Pocket/Duo PCB, RP2040 Pro Micro Development Board
9+
* Hardware Availability: (https://togkey.com)
10+
11+
Make example for this keyboard (after setting up your build environment):
12+
13+
make togkey/pad_pocket:default
14+
15+
Flashing example for this keyboard:
16+
17+
make togkey/pad_pocket:default:flash
18+
19+
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).
20+
21+
## Bootloader
22+
23+
Enter the bootloader in 3 ways:
24+
25+
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (The left key closest to the USB Port) and plug in the keyboard
26+
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
27+
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

0 commit comments

Comments
 (0)