aboutsummaryrefslogtreecommitdiff
path: root/keyboards/snappypad/v1_3x4
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/snappypad/v1_3x4')
-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 @@
+// Copyright 2025 Snappy Key <[email protected]>
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#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 @@
+{
+ "manufacturer": "Snappy Key",
+ "keyboard_name": "Snappy Pad v1",
+ "maintainer": "snappykey",
+ "development_board": "promicro",
+ "diode_direction": "COL2ROW",
+ "encoder": {
+ "rotary": [
+ {"pin_a": "F4", "pin_b": "F5"}
+ ]
+ },
+ "features": {
+ "bootmagic": true,
+ "extrakey": true,
+ "mousekey": true,
+ "encoder": true
+ },
+ "matrix_pins": {
+ "cols": ["E6", "B4", "D7", "C6", "B6", "F6"],
+ "rows": ["D4", "D0", "D1"]
+ },
+ "url": "snappykey.eu",
+ "usb": {
+ "device_version": "1.0.0",
+ "pid": "0x1451",
+ "vid": "0x16D0"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 4], "x": 0, "y": 0},
+ {"matrix": [0, 5], "x": 3, "y": 0},
+ {"matrix": [0, 0], "x": 0, "y": 1},
+ {"matrix": [0, 1], "x": 1, "y": 1},
+ {"matrix": [0, 2], "x": 2, "y": 1},
+ {"matrix": [0, 3], "x": 3, "y": 1},
+ {"matrix": [1, 0], "x": 0, "y": 2},
+ {"matrix": [1, 1], "x": 1, "y": 2},
+ {"matrix": [1, 2], "x": 2, "y": 2},
+ {"matrix": [1, 3], "x": 3, "y": 2},
+ {"matrix": [2, 0], "x": 0, "y": 3},
+ {"matrix": [2, 1], "x": 1, "y": 3},
+ {"matrix": [2, 2], "x": 2, "y": 3},
+ {"matrix": [2, 3], "x": 3, "y": 3}
+ ]
+ }
+ }
+}
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 @@
+// Copyright 2025 Snappy Key <[email protected]>
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT(
+ TO(1), KC_MPLY,
+ KC_F13, KC_F14, KC_F15, KC_F16,
+ KC_F17, KC_F18, KC_F19, KC_F20,
+ KC_F21, KC_F22, KC_F23, KC_F24
+ ),
+ [1] = LAYOUT(
+ TO(2), KC_TRNS,
+ LSFT(KC_F13), LSFT(KC_F14), LSFT(KC_F15), LSFT(KC_F16),
+ LSFT(KC_F17), LSFT(KC_F18), LSFT(KC_F19), LSFT(KC_F20),
+ LSFT(KC_F21), LSFT(KC_F22), LSFT(KC_F23), LSFT(KC_F24)
+ ),
+ [2] = LAYOUT(
+ TO(3), KC_TRNS,
+ LCTL(KC_F13), LCTL(KC_F14), LCTL(KC_F15), LCTL(KC_F16),
+ LCTL(KC_F17), LCTL(KC_F18), LCTL(KC_F19), LCTL(KC_F20),
+ LCTL(KC_F21), LCTL(KC_F22), LCTL(KC_F23), LCTL(KC_F24)
+ ),
+ [3] = LAYOUT(
+ TO(0), KC_TRNS,
+ LALT(KC_F13), LALT(KC_F14), LALT(KC_F15), LALT(KC_F16),
+ LALT(KC_F17), LALT(KC_F18), LALT(KC_F19), LALT(KC_F20),
+ LALT(KC_F21), LALT(KC_F22), LALT(KC_F23), LALT(KC_F24)
+ )
+};
+
+layer_state_t layer_state_set_user(layer_state_t state) {
+ switch (get_highest_layer(state)) {
+ case 0:
+ gpio_write_pin_low(F7);
+ gpio_write_pin_low(B2);
+ gpio_write_pin_low(B5);
+ break;
+ case 1:
+ gpio_write_pin_high(F7);
+ gpio_write_pin_low(B2);
+ gpio_write_pin_low(B5);
+ break;
+ case 2:
+ gpio_write_pin_high(F7);
+ gpio_write_pin_high(B2);
+ gpio_write_pin_low(B5);
+ break;
+ case 3:
+ gpio_write_pin_high(F7);
+ gpio_write_pin_high(B2);
+ gpio_write_pin_high(B5);
+ break;
+ }
+ return state;
+}
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
+ [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [1] = { ENCODER_CCW_CW(_______, _______) },
+ [2] = { ENCODER_CCW_CW(_______, _______) },
+ [3] = { ENCODER_CCW_CW(_______, _______) }
+};
+#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 @@
+# Snappy Pad v.1
+
+![sp](https://i.imgur.com/Xgv5qky.jpeg)
+
+Reliable macro pad for all use cases
+
+* Keyboard Maintainer: [SnappyKey](https://github.com/snappykey)
+* Hardware Supported: pcb, cad files
+* Hardware Availability: Will be open sourced later
+
+Make example for this keyboard (after setting up your build environment):
+
+ make snappypad/v1_3x4:default
+
+Flashing example for this keyboard:
+
+ make snappypad/v1_3x4:default:flash
+
+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).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
+* **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 @@
+// Copyright 2025 Snappy Key <[email protected]>
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include "quantum.h"
+
+void keyboard_post_init_kb(void) {
+ gpio_set_pin_output(F7);
+ gpio_set_pin_output(B2);
+ gpio_set_pin_output(B5);
+
+ keyboard_post_init_user();
+}