be7786bfc6f8e14a796cf13991428d1ef8135f26
- Author
- Stephen Onnen <stephen.onnen@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/keyboards/onnenon/hotdog_pad/hotdog_pad.c b/keyboards/onnenon/hotdog_pad/hotdog_pad.c
2new file mode 100644
3index 0000000000000000000000000000000000000000..c48274fb55481f09b4b1753fe888ecc54b938ea2
4--- /dev/null
5+++ b/keyboards/onnenon/hotdog_pad/hotdog_pad.c
6@@ -0,0 +1,12 @@
7+// Copyright 2024 Stephen Onnen (@onnenon)
8+// SPDX-License-Identifier: GPL-2.0-or-later
9+
10+#include "quantum.h"
11+
12+void keyboard_pre_init_kb(void) {
13+ // Enable the power pin for the Xiao Seeed rp2040 onboard NeoPixel
14+ gpio_set_pin_output(GP11);
15+ gpio_write_pin_high(GP11);
16+
17+ keyboard_pre_init_user();
18+}
19diff --git a/keyboards/onnenon/hotdog_pad/keyboard.json b/keyboards/onnenon/hotdog_pad/keyboard.json
20new file mode 100644
21index 0000000000000000000000000000000000000000..3831e7afedc988620f64b1b96e475817c6819d01
22--- /dev/null
23+++ b/keyboards/onnenon/hotdog_pad/keyboard.json
24@@ -0,0 +1,53 @@
25+{
26+ "manufacturer": "onnenon",
27+ "keyboard_name": "Hotdog Pad",
28+ "maintainer": "onnenon",
29+ "processor": "RP2040",
30+ "bootloader": "rp2040",
31+ "matrix_pins": {
32+ "direct": [["GP1", "GP2", "GP4", "GP6", "GP0"]]
33+ },
34+ "usb": {
35+ "device_version": "1.0.0",
36+ "pid": "0x0001",
37+ "vid": "0x4F4E"
38+ },
39+ "features": {
40+ "encoder": true,
41+ "rgblight": true,
42+ "extrakey": true,
43+ "mousekey": true
44+ },
45+ "encoder": {
46+ "rotary": [{ "pin_a": "GP29", "pin_b": "GP28" }]
47+ },
48+ "layouts": {
49+ "LAYOUT": {
50+ "layout": [
51+ { "x": 0, "y": 0, "matrix": [0, 0] },
52+ { "x": 1, "y": 0, "matrix": [0, 1] },
53+ { "x": 2, "y": 0, "matrix": [0, 2] },
54+ { "x": 3, "y": 0, "matrix": [0, 3] },
55+ { "x": 4, "y": 0, "matrix": [0, 4] }
56+ ]
57+ }
58+ },
59+ "ws2812": {
60+ "pin": "GP12",
61+ "driver": "vendor"
62+ },
63+ "rgblight": {
64+ "led_count": 1,
65+ "max_brightness": 185,
66+ "animations": {
67+ "breathing": true,
68+ "rainbow_mood": true,
69+ "knight": true,
70+ "christmas": true,
71+ "static_gradient": true,
72+ "rgb_test": true,
73+ "alternating": true,
74+ "twinkle": true
75+ }
76+ }
77+}
78diff --git a/keyboards/onnenon/hotdog_pad/keymaps/default/keymap.c b/keyboards/onnenon/hotdog_pad/keymaps/default/keymap.c
79new file mode 100644
80index 0000000000000000000000000000000000000000..93702490981cf51af317edf20cf7d67cba597244
81--- /dev/null
82+++ b/keyboards/onnenon/hotdog_pad/keymaps/default/keymap.c
83@@ -0,0 +1,14 @@
84+// Copyright 2024 Stephen Onnen (@onnenon)
85+// SPDX-License-Identifier: GPL-2.0-or-later
86+
87+#include QMK_KEYBOARD_H
88+
89+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
90+ [0] = LAYOUT(KC_A, KC_B, KC_C, KC_D, KC_MUTE)
91+};
92+
93+#if defined(ENCODER_MAP_ENABLE)
94+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
95+ [0] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
96+};
97+#endif
98diff --git a/keyboards/onnenon/hotdog_pad/keymaps/default/rules.mk b/keyboards/onnenon/hotdog_pad/keymaps/default/rules.mk
99new file mode 100644
100index 0000000000000000000000000000000000000000..ee325681483fbd804de1e14be33c47719c65bc71
101--- /dev/null
102+++ b/keyboards/onnenon/hotdog_pad/keymaps/default/rules.mk
103@@ -0,0 +1 @@
104+ENCODER_MAP_ENABLE = yes
105diff --git a/keyboards/onnenon/hotdog_pad/readme.md b/keyboards/onnenon/hotdog_pad/readme.md
106new file mode 100644
107index 0000000000000000000000000000000000000000..c3b0699c21dad3d26672ef936e2d62f0d4e1dd64
108--- /dev/null
109+++ b/keyboards/onnenon/hotdog_pad/readme.md
110@@ -0,0 +1,24 @@
111+# Hotdog Pad
112+
113+* Keyboard Maintainer: [Stephen Onnen](https://github.com/onnenon)
114+* Hardware Supported: Seeed Studio XIAO RP2040
115+* Hardware Availability: https://github.com/onnenon/hotdog_pad
116+
117+Make example for this keyboard (after setting up your build environment):
118+
119+ make onnenon/hotdog_pad:default
120+
121+Flashing example for this keyboard:
122+
123+ make onnenon/hotdog_pad:default:flash
124+