09dfbf8efe5655947b92361a6bdbf8aa2adc0b88
- Author
- Josh Hinnebusch <joshhinnebusch@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/keyboards/hineybush/h88_g2/config.h b/keyboards/hineybush/h88_g2/config.h
2new file mode 100644
3index 0000000000000000000000000000000000000000..ccde4ac624eac0b2662c57cd43e4b21309d32270
4--- /dev/null
5+++ b/keyboards/hineybush/h88_g2/config.h
6@@ -0,0 +1,19 @@
7+/*
8+ * This program is free software: you can redistribute it and/or modify
9+ * it under the terms of the GNU General Public License as published by
10+ * the Free Software Foundation, either version 2 of the License, or
11+ * (at your option) any later version.
12+ *
13+ * This program is distributed in the hope that it will be useful,
14+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+ * GNU General Public License for more details.
17+ *
18+ * You should have received a copy of the GNU General Public License
19+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20+ */
21+#pragma once
22+
23+#define BACKLIGHT_PWM_DRIVER PWMD3
24+#define BACKLIGHT_PWM_CHANNEL 1
25+#define BACKLIGHT_PAL_MODE 1
26diff --git a/keyboards/hineybush/h88_g2/halconf.h b/keyboards/hineybush/h88_g2/halconf.h
27new file mode 100644
28index 0000000000000000000000000000000000000000..976d17d8919ff6e6219eba38cb23bcb8cbf66625
29--- /dev/null
30+++ b/keyboards/hineybush/h88_g2/halconf.h
31@@ -0,0 +1,20 @@
32+/* Copyright 2024 Josh Hinnebusch
33+ *
34+ * This program is free software: you can redistribute it and/or modify
35+ * it under the terms of the GNU General Public License as published by
36+ * the Free Software Foundation, either version 3 of the License, or
37+ * (at your option) any later version.
38+ *
39+ * This program is distributed in the hope that it will be useful,
40+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
41+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42+ * GNU General Public License for more details.
43+ *
44+ * You should have received a copy of the GNU General Public License
45+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
46+ */
47+#pragma once
48+
49+#define HAL_USE_PWM TRUE
50+
51+#include_next <halconf.h>
52diff --git a/keyboards/hineybush/h88_g2/keyboard.json b/keyboards/hineybush/h88_g2/keyboard.json
53new file mode 100644
54index 0000000000000000000000000000000000000000..983cbcc1f58759cc142bcbab79ddf929287a7dc6
55--- /dev/null
56+++ b/keyboards/hineybush/h88_g2/keyboard.json
57@@ -0,0 +1,1174 @@
58+{
59+ "manufacturer": "Hiney LLC",
60+ "keyboard_name": "h88_g2",
61+ "maintainer": "hineybush",
62+ "backlight": {
63+ "pin": "A6"
64+ },
65+ "bootloader": "stm32-dfu",
66+ "diode_direction": "COL2ROW",
67+ "features": {
68+ "backlight": true,
69+ "bootmagic": true,
70+ "command": false,
71+ "console": false,
72+ "extrakey": true,
73+ "mousekey": true,
74+ "nkro": true,
75+ "rgblight": true
76+ },
77+ "indicators": {
78+ "caps_lock": "B12",
79+ "scroll_lock": "B14"
80+ },
81+ "matrix_pins": {
82+ "cols": ["B11", "B10", "B2", "B1", "B0", "A7", "A5", "A4", "A3", "F1", "C15", "C14", "F0", "C13", "B9", "B8", "B5"],
83+ "rows": ["A15", "B3", "B4", "A0", "B6", "B7"]
84+ },
85+ "processor": "STM32F072",
86+ "rgblight": {
87+ "animations": {
88+ "alternating": true,
89+ "breathing": true,
90+ "christmas": true,
91+ "knight": true,
92+ "rainbow_mood": true,
93+ "rainbow_swirl": true,
94+ "rgb_test": true,
95+ "snake": true,
96+ "static_gradient": true,
97+ "twinkle": true
98+ },
99+ "brightness_steps": 8,
100+ "default": {
101+ "val": 128
102+ },
103+ "led_count": 24,
104+ "max_brightness": 200,
105+ "saturation_steps": 8,
106+ "sleep": true
107+ },
108+ "url": "",
109+ "usb": {
110+ "device_version": "1.0.0",
111+ "pid": "0x0002",
112+ "vid": "0x4069"
113+ },
114+ "ws2812": {
115+ "pin": "B15"
116+ },
117diff --git a/keyboards/hineybush/h88_g2/keymaps/default/keymap.c b/keyboards/hineybush/h88_g2/keymaps/default/keymap.c
118new file mode 100644
119index 0000000000000000000000000000000000000000..d9dbaf08e7068671a857dbc0b80b727793011ff1
120--- /dev/null
121+++ b/keyboards/hineybush/h88_g2/keymaps/default/keymap.c
122@@ -0,0 +1,42 @@
123+// Copyright 2023 Josh Hinnebusch
124+// SPDX-License-Identifier: GPL-2.0-or-later
125+
126+#include QMK_KEYBOARD_H
127+
128+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
129+ /*
130+ * ┌───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┐
131+ * │Esc│ │F1 │F2 │F3 │F4 │ │F5 │F6 │F7 │F8 │ │F9 │F10│F11│F12│ │PSc│Scr│Pse│
132+ * └───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┘
133+ * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ ┌───┬───┬───┐
134+ * │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Backsp│ │Ins│Hom│PgU│
135+ * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ ├───┼───┼───┤
136+ * │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │ │Del│End│PgD│
137+ * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┴───┴───┘
138+ * │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │
139+ * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ ┌───┐
140+ * │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift │ │ ↑ │
141+ * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴───────┼───┴┬────┬────┤ ┌───┼───┼───┐
142+ * │Ctrl│GUI │Alt │ │ Fn │ GUI│Ctrl│ │ ← │ ↓ │ → │
143+ * └────┴────┴────┴─────────────────────────────┴────┴────┴────┘ └───┴───┴───┘
144+ */
145+ [0] = LAYOUT_all(
146+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_0, KC_PSCR, KC_SCRL, KC_PAUS,
147+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
148+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
149+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
150+ KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_TRNS, KC_UP,
151+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
152+ ),
153+
154+ [1] = LAYOUT_all(
155+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, UG_TOGG, UG_NEXT, UG_HUED, UG_HUEU, UG_SATD, UG_SATU, UG_VALD, UG_VALU, KC_TRNS, BL_TOGG, BL_DOWN, BL_UP,
156+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
157+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
158+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
159+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
160+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
161+ ),
162+
163+
164+};
165diff --git a/keyboards/hineybush/h88_g2/mcuconf.h b/keyboards/hineybush/h88_g2/mcuconf.h
166new file mode 100644
167index 0000000000000000000000000000000000000000..7e226e43711d3859dcbc3fb849b0a2206ba24e83
168--- /dev/null
169+++ b/keyboards/hineybush/h88_g2/mcuconf.h
170@@ -0,0 +1,21 @@
171+/* Copyright 2024 Josh Hinnebusch
172+ *
173+ * This program is free software: you can redistribute it and/or modify
174+ * it under the terms of the GNU General Public License as published by
175+ * the Free Software Foundation, either version 3 of the License, or
176+ * (at your option) any later version.
177+ *
178+ * This program is distributed in the hope that it will be useful,
179+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
180+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
181+ * GNU General Public License for more details.
182+ *
183+ * You should have received a copy of the GNU General Public License
184+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
185+ */
186+#pragma once
187+
188+#include_next <mcuconf.h>
189+
190+#undef STM32_PWM_USE_TIM3
191+#define STM32_PWM_USE_TIM3 TRUE
192diff --git a/keyboards/hineybush/h88_g2/readme.md b/keyboards/hineybush/h88_g2/readme.md
193new file mode 100644
194index 0000000000000000000000000000000000000000..e5cd60b432dc1df40ea1c2c6d61c39cdf0136567
195--- /dev/null
196+++ b/keyboards/hineybush/h88_g2/readme.md
197@@ -0,0 +1,27 @@
198+# h88_g2
199+
200+[h88_g2](https://i.imgur.com/t7chDf8h.png)
201+
202+New generation of the h88 keyboard PCB platform with an STM32 microcontroller.
203+
204+* Keyboard Maintainer: [Josh Hinnebusch](https://github.com/hineybush)
205+* Hardware Supported: H88 G2 PCB w/ STM32F072 MCU
206+* Hardware Availability: [hineybush.com](https://hineybush.com)
207+
208+Make example for this keyboard (after setting up your build environment):
209+
210+ make hineybush/h88_g2:default
211+
212+Flashing example for this keyboard:
213+
214+ make hineybush/h88_g2:default:flash
215+