summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2025-07-06 07:39:46 +0000
committerQMK Bot <hello@qmk.fm>2025-07-06 07:39:46 +0000
commitb99e2f7230366d6bb2ef313acb61984e277ae610 (patch)
treef3f2c33cf4eda0613f9c8aeba4afd684525c1c43
parente68389a11ee10832ad7b4856ac53d94a6bba25ef (diff)
parent9c965bb62ec9ea84e68e0a1559dfbc35429df090 (diff)
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/snappypad/v1_3x4/config.h5
-rw-r--r--keyboards/snappypad/v1_3x4/keyboard.json48
-rw-r--r--keyboards/snappypad/v1_3x4/keymaps/default/keymap.c65
-rw-r--r--keyboards/snappypad/v1_3x4/readme.md27
-rw-r--r--keyboards/snappypad/v1_3x4/v1_3x4.c11
5 files changed, 156 insertions, 0 deletions
diff --git a/keyboards/snappypad/v1_3x4/config.h b/keyboards/snappypad/v1_3x4/config.h
new file mode 100644
index 0000000000..040470b933
--- /dev/null
+++ b/keyboards/snappypad/v1_3x4/config.h
@@ -0,0 +1,5 @@
1// Copyright 2025 Snappy Key <snappykey@gmail.com>
2// SPDX-License-Identifier: GPL-2.0-or-later
3#pragma once
4
5#define MATRIX_MASKED
diff --git a/keyboards/snappypad/v1_3x4/keyboard.json b/keyboards/snappypad/v1_3x4/keyboard.json
new file mode 100644
index 0000000000..26a3384a6f
--- /dev/null
+++ b/keyboards/snappypad/v1_3x4/keyboard.json
@@ -0,0 +1,48 @@
1{
2 "manufacturer": "Snappy Key",
3 "keyboard_name": "Snappy Pad v1",
4 "maintainer": "snappykey",
5 "development_board": "promicro",
6 "diode_direction": "COL2ROW",
7 "encoder": {
8 "rotary": [
9 {"pin_a": "F4", "pin_b": "F5"}
10 ]
11 },
12 "features": {
13 "bootmagic": true,
14 "extrakey": true,
15 "mousekey": true,
16 "encoder": true
17 },
18 "matrix_pins": {
19 "cols": ["E6", "B4", "D7", "C6", "B6", "F6"],
20 "rows": ["D4", "D0", "D1"]
21 },
22 "url": "snappykey.eu",
23 "usb": {
24 "device_version": "1.0.0",
25 "pid": "0x1451",
26 "vid": "0x16D0"
27 },
28 "layouts": {
29 "LAYOUT": {
30 "layout": [
31 {"matrix": [0, 4], "x": 0, "y": 0},
32 {"matrix": [0, 5], "x": 3, "y": 0},
33 {"matrix": [0, 0], "x": 0, "y": 1},
34 {"matrix": [0, 1], "x": 1, "y": 1},
35 {"matrix": [0, 2], "x": 2, "y": 1},
36 {"matrix": [0, 3], "x": 3, "y": 1},
37 {"matrix": [1, 0], "x": 0, "y": 2},
38 {"matrix": [1, 1], "x": 1, "y": 2},
39 {"matrix": [1, 2], "x": 2, "y": 2},
40 {"matrix": [1, 3], "x": 3, "y": 2},
41 {"matrix": [2, 0], "x": 0, "y": 3},
42 {"matrix": [2, 1], "x": 1, "y": 3},
43 {"matrix": [2, 2], "x": 2, "y": 3},
44 {"matrix": [2, 3], "x": 3, "y": 3}
45 ]
46 }
47 }
48}
diff --git a/keyboards/snappypad/v1_3x4/keymaps/default/keymap.c b/keyboards/snappypad/v1_3x4/keymaps/default/keymap.c
new file mode 100644
index 0000000000..8ebd851e77
--- /dev/null
+++ b/keyboards/snappypad/v1_3x4/keymaps/default/keymap.c
@@ -0,0 +1,65 @@
1// Copyright 2025 Snappy Key <snappykey@gmail.com>
2// SPDX-License-Identifier: GPL-2.0-or-later
3#include QMK_KEYBOARD_H
4
5const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
6 [0] = LAYOUT(
7 TO(1), KC_MPLY,
8 KC_F13, KC_F14, KC_F15, KC_F16,
9 KC_F17, KC_F18, KC_F19, KC_F20,
10 KC_F21, KC_F22, KC_F23, KC_F24
11 ),
12 [1] = LAYOUT(
13 TO(2), KC_TRNS,
14 LSFT(KC_F13), LSFT(KC_F14), LSFT(KC_F15), LSFT(KC_F16),
15 LSFT(KC_F17), LSFT(KC_F18), LSFT(KC_F19), LSFT(KC_F20),
16 LSFT(KC_F21), LSFT(KC_F22), LSFT(KC_F23), LSFT(KC_F24)
17 ),
18 [2] = LAYOUT(
19 TO(3), KC_TRNS,
20 LCTL(KC_F13), LCTL(KC_F14), LCTL(KC_F15), LCTL(KC_F16),
21 LCTL(KC_F17), LCTL(KC_F18), LCTL(KC_F19), LCTL(KC_F20),
22 LCTL(KC_F21), LCTL(KC_F22), LCTL(KC_F23), LCTL(KC_F24)
23 ),
24 [3] = LAYOUT(
25 TO(0), KC_TRNS,
26 LALT(KC_F13), LALT(KC_F14), LALT(KC_F15), LALT(KC_F16),
27 LALT(KC_F17), LALT(KC_F18), LALT(KC_F19), LALT(KC_F20),
28 LALT(KC_F21), LALT(KC_F22), LALT(KC_F23), LALT(KC_F24)
29 )
30};
31
32layer_state_t layer_state_set_user(layer_state_t state) {
33 switch (get_highest_layer(state)) {
34 case 0:
35 gpio_write_pin_low(F7);
36 gpio_write_pin_low(B2);
37 gpio_write_pin_low(B5);
38 break;
39 case 1:
40 gpio_write_pin_high(F7);
41 gpio_write_pin_low(B2);
42 gpio_write_pin_low(B5);
43 break;
44 case 2:
45 gpio_write_pin_high(F7);
46 gpio_write_pin_high(B2);
47 gpio_write_pin_low(B5);
48 break;
49 case 3:
50 gpio_write_pin_high(F7);
51 gpio_write_pin_high(B2);
52 gpio_write_pin_high(B5);
53 break;
54 }
55 return state;
56}
57
58#if defined(ENCODER_MAP_ENABLE)
59const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
60 [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
61 [1] = { ENCODER_CCW_CW(_______, _______) },
62 [2] = { ENCODER_CCW_CW(_______, _______) },
63 [3] = { ENCODER_CCW_CW(_______, _______) }
64};
65#endif
diff --git a/keyboards/snappypad/v1_3x4/readme.md b/keyboards/snappypad/v1_3x4/readme.md
new file mode 100644
index 0000000000..8e69dc58b2
--- /dev/null
+++ b/keyboards/snappypad/v1_3x4/readme.md
@@ -0,0 +1,27 @@
1# Snappy Pad v.1
2
3![sp](https://i.imgur.com/Xgv5qky.jpeg)
4
5Reliable macro pad for all use cases
6
7* Keyboard Maintainer: [SnappyKey](https://github.com/snappykey)
8* Hardware Supported: pcb, cad files
9* Hardware Availability: Will be open sourced later
10
11Make example for this keyboard (after setting up your build environment):
12
13 make snappypad/v1_3x4:default
14
15Flashing example for this keyboard:
16
17 make snappypad/v1_3x4:default:flash
18
19See 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
23Enter the bootloader in 3 ways:
24
25* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) 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
diff --git a/keyboards/snappypad/v1_3x4/v1_3x4.c b/keyboards/snappypad/v1_3x4/v1_3x4.c
new file mode 100644
index 0000000000..e2a62773e8
--- /dev/null
+++ b/keyboards/snappypad/v1_3x4/v1_3x4.c
@@ -0,0 +1,11 @@
1// Copyright 2025 Snappy Key <snappykey@gmail.com>
2// SPDX-License-Identifier: GPL-2.0-or-later
3#include "quantum.h"
4
5void keyboard_post_init_kb(void) {
6 gpio_set_pin_output(F7);
7 gpio_set_pin_output(B2);
8 gpio_set_pin_output(B5);
9
10 keyboard_post_init_user();
11}