summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/whirlwind_fx_element/config.h7
-rw-r--r--keyboards/whirlwind_fx_element/halconf.h9
-rw-r--r--keyboards/whirlwind_fx_element/keyboard.json302
-rw-r--r--keyboards/whirlwind_fx_element/keymaps/default/keymap.c42
-rw-r--r--keyboards/whirlwind_fx_element/mcuconf.h10
-rw-r--r--keyboards/whirlwind_fx_element/readme.md31
-rw-r--r--keyboards/whirlwind_fx_element/whirlwind_fx_element.c119
7 files changed, 520 insertions, 0 deletions
diff --git a/keyboards/whirlwind_fx_element/config.h b/keyboards/whirlwind_fx_element/config.h
new file mode 100644
index 0000000000..606163cf10
--- /dev/null
+++ b/keyboards/whirlwind_fx_element/config.h
@@ -0,0 +1,7 @@
1// Copyright 2023 WhirlwindFX
2// Copyright 2023 aedanmills
3// SPDX-License-Identifier: GPL-2.0-or-later
4
5#pragma once
6
7#define IS31FL3741_I2C_ADDRESS_1 IS31FL3741_I2C_ADDRESS_GND
diff --git a/keyboards/whirlwind_fx_element/halconf.h b/keyboards/whirlwind_fx_element/halconf.h
new file mode 100644
index 0000000000..75e92dea90
--- /dev/null
+++ b/keyboards/whirlwind_fx_element/halconf.h
@@ -0,0 +1,9 @@
1// Copyright 2023 WhirlwindFX
2// Copyright 2023 aedanmills
3// SPDX-License-Identifier: GPL-2.0-or-later
4
5#pragma once
6
7#define HAL_USE_I2C TRUE
8
9#include_next <halconf.h>
diff --git a/keyboards/whirlwind_fx_element/keyboard.json b/keyboards/whirlwind_fx_element/keyboard.json
new file mode 100644
index 0000000000..f01c5859da
--- /dev/null
+++ b/keyboards/whirlwind_fx_element/keyboard.json
@@ -0,0 +1,302 @@
1{
2 "manufacturer": "WhirlwindFX",
3 "keyboard_name": "Element",
4 "maintainer": "aedanmills",
5 "bootloader": "stm32-dfu",
6 "diode_direction": "ROW2COL",
7 "features": {
8 "bootmagic": true,
9 "extrakey": true,
10 "nkro": true,
11 "rgb_matrix": true
12 },
13 "matrix_pins": {
14 "rows": [ "B0", "B1", "B2", "B3", "B12", "B13", "B14", "B15" ],
15 "cols": [ "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "A10", "A13", "A14" ]
16 },
17 "processor": "STM32F303",
18 "url": "https://www.whirlwindfx.com/products/element",
19 "usb": {
20 "vid": "0x0483",
21 "pid": "0xA33E",
22 "device_version": "1.0.6"
23 },
24 "indicators": {
25 "caps_lock": "B9",
26 "num_lock": "B8",
27 "scroll_lock": "B10",
28 "on_state": 0
29 },
30 "community_layouts": ["fullsize_ansi"],
31 "layouts": {
32 "LAYOUT_fullsize_ansi": {
33 "layout": [
34 {"matrix": [0, 0], "x": 0, "y": 0},
35 {"matrix": [0, 1], "x": 2, "y": 0},
36 {"matrix": [0, 2], "x": 3, "y": 0},
37 {"matrix": [0, 3], "x": 4, "y": 0},
38 {"matrix": [0, 4], "x": 5, "y": 0},
39 {"matrix": [0, 5], "x": 6.5, "y": 0},
40 {"matrix": [0, 6], "x": 7.5, "y": 0},
41 {"matrix": [0, 7], "x": 8.5, "y": 0},
42 {"matrix": [0, 8], "x": 9.5, "y": 0},
43 {"matrix": [0, 9], "x": 11, "y": 0},
44 {"matrix": [0, 10], "x": 12, "y": 0},
45 {"matrix": [0, 11], "x": 13, "y": 0},
46 {"matrix": [0, 12], "x": 14, "y": 0},
47 {"matrix": [1, 0], "x": 15.25, "y": 0},
48 {"matrix": [1, 1], "x": 16.25, "y": 0},
49 {"matrix": [1, 2], "x": 17.25, "y": 0},
50 {"matrix": [1, 3], "x": 0, "y": 1.25},
51 {"matrix": [1, 4], "x": 1, "y": 1.25},
52 {"matrix": [1, 5], "x": 2, "y": 1.25},
53 {"matrix": [1, 6], "x": 3, "y": 1.25},
54 {"matrix": [1, 7], "x": 4, "y": 1.25},
55 {"matrix": [1, 8], "x": 5, "y": 1.25},
56 {"matrix": [1, 9], "x": 6, "y": 1.25},
57 {"matrix": [1, 10], "x": 7, "y": 1.25},
58 {"matrix": [1, 11], "x": 8, "y": 1.25},
59 {"matrix": [1, 12], "x": 9, "y": 1.25},
60 {"matrix": [2, 0], "x": 10, "y": 1.25},
61 {"matrix": [2, 1], "x": 11, "y": 1.25},
62 {"matrix": [2, 2], "x": 12, "y": 1.25},
63 {"matrix": [2, 3], "x": 13, "y": 1.25, "w": 2},
64 {"matrix": [2, 4], "x": 15.25, "y": 1.25},
65 {"matrix": [2, 5], "x": 16.25, "y": 1.25},
66 {"matrix": [2, 6], "x": 17.25, "y": 1.25},
67 {"matrix": [2, 7], "x": 18.5, "y": 1.25},
68 {"matrix": [2, 8], "x": 19.5, "y": 1.25},
69 {"matrix": [2, 9], "x": 20.5, "y": 1.25},
70 {"matrix": [2, 10], "x": 21.5, "y": 1.25},
71 {"matrix": [2, 11], "x": 0, "y": 2.25, "w": 1.5},
72 {"matrix": [2, 12], "x": 1.5, "y": 2.25},
73 {"matrix": [3, 0], "x": 2.5, "y": 2.25},
74 {"matrix": [3, 1], "x": 3.5, "y": 2.25},
75 {"matrix": [3, 2], "x": 4.5, "y": 2.25},
76 {"matrix": [3, 3], "x": 5.5, "y": 2.25},
77 {"matrix": [3, 4], "x": 6.5, "y": 2.25},
78 {"matrix": [3, 5], "x": 7.5, "y": 2.25},
79 {"matrix": [3, 6], "x": 8.5, "y": 2.25},
80 {"matrix": [3, 7], "x": 9.5, "y": 2.25},
81 {"matrix": [3, 8], "x": 10.5, "y": 2.25},
82 {"matrix": [3, 9], "x": 11.5, "y": 2.25},
83 {"matrix": [3, 10], "x": 12.5, "y": 2.25},
84 {"matrix": [3, 11], "x": 13.5, "y": 2.25, "w": 1.5},
85 {"matrix": [3, 12], "x": 15.25, "y": 2.25},
86 {"matrix": [4, 0], "x": 16.25, "y": 2.25},
87 {"matrix": [4, 1], "x": 17.25, "y": 2.25},
88 {"matrix": [4, 2], "x": 18.5, "y": 2.25},
89 {"matrix": [4, 3], "x": 19.5, "y": 2.25},
90 {"matrix": [4, 4], "x": 20.5, "y": 2.25},
91 {"matrix": [5, 8], "x": 21.5, "y": 2.25, "h": 2},
92 {"matrix": [4, 5], "x": 0, "y": 3.25, "w": 1.75},
93 {"matrix": [4, 6], "x": 1.75, "y": 3.25},
94 {"matrix": [4, 7], "x": 2.75, "y": 3.25},
95 {"matrix": [4, 8], "x": 3.75, "y": 3.25},
96 {"matrix": [4, 9], "x": 4.75, "y": 3.25},
97 {"matrix": [4, 10], "x": 5.75, "y": 3.25},
98 {"matrix": [4, 11], "x": 6.75, "y": 3.25},
99 {"matrix": [4, 12], "x": 7.75, "y": 3.25},
100 {"matrix": [5, 0], "x": 8.75, "y": 3.25},
101 {"matrix": [5, 1], "x": 9.75, "y": 3.25},
102 {"matrix": [5, 2], "x": 10.75, "y": 3.25},
103 {"matrix": [5, 3], "x": 11.75, "y": 3.25},
104 {"matrix": [5, 4], "x": 12.75, "y": 3.25, "w": 2.25},
105 {"matrix": [5, 5], "x": 18.5, "y": 3.25},
106 {"matrix": [5, 6], "x": 19.5, "y": 3.25},
107 {"matrix": [5, 7], "x": 20.5, "y": 3.25},
108 {"matrix": [5, 9], "x": 0, "y": 4.25, "w": 2.25},
109 {"matrix": [5, 10], "x": 2.25, "y": 4.25},
110 {"matrix": [5, 11], "x": 3.25, "y": 4.25},
111 {"matrix": [5, 12], "x": 4.25, "y": 4.25},
112 {"matrix": [6, 0], "x": 5.25, "y": 4.25},
113 {"matrix": [6, 1], "x": 6.25, "y": 4.25},
114 {"matrix": [6, 2], "x": 7.25, "y": 4.25},
115 {"matrix": [6, 3], "x": 8.25, "y": 4.25},
116 {"matrix": [6, 4], "x": 9.25, "y": 4.25},
117 {"matrix": [6, 5], "x": 10.25, "y": 4.25},
118 {"matrix": [6, 6], "x": 11.25, "y": 4.25},
119 {"matrix": [6, 7], "x": 12.25, "y": 4.25, "w": 2.75},
120 {"matrix": [6, 8], "x": 16.25, "y": 4.25},
121 {"matrix": [6, 9], "x": 18.5, "y": 4.25},
122 {"matrix": [6, 10], "x": 19.5, "y": 4.25},
123 {"matrix": [6, 11], "x": 20.5, "y": 4.25},
124 {"matrix": [6, 12], "x": 21.5, "y": 4.25, "h": 2},
125 {"matrix": [7, 0], "x": 0, "y": 5.25, "w": 1.25},
126 {"matrix": [7, 1], "x": 1.25, "y": 5.25, "w": 1.25},
127 {"matrix": [7, 2], "x": 2.5, "y": 5.25, "w": 1.25},
128 {"matrix": [7, 3], "x": 3.75, "y": 5.25, "w": 6.25},
129 {"matrix": [7, 4], "x": 10, "y": 5.25, "w": 1.25},
130 {"matrix": [7, 5], "x": 11.25, "y": 5.25, "w": 1.25},
131 {"matrix": [7, 6], "x": 12.5, "y": 5.25, "w": 1.25},
132 {"matrix": [7, 7], "x": 13.75, "y": 5.25, "w": 1.25},
133 {"matrix": [7, 8], "x": 15.25, "y": 5.25},
134 {"matrix": [7, 9], "x": 16.25, "y": 5.25},
135 {"matrix": [7, 10], "x": 17.25, "y": 5.25},
136 {"matrix": [7, 11], "x": 18.5, "y": 5.25, "w": 2},
137 {"matrix": [7, 12], "x": 20.5, "y": 5.25}
138 ]
139 }
140 },
141 "rgb_matrix": {
142 "driver": "is31fl3741",
143 "max_brightness": 200,
144 "layout": [
145 {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
146 {"matrix": [0, 1], "x": 21, "y": 0, "flags": 4},
147 {"matrix": [0, 2], "x": 31, "y": 0, "flags": 4},
148 {"matrix": [0, 3], "x": 42, "y": 0, "flags": 4},
149 {"matrix": [0, 4], "x": 52, "y": 0, "flags": 4},
150 {"matrix": [0, 5], "x": 68, "y": 0, "flags": 4},
151 {"matrix": [0, 6], "x": 78, "y": 0, "flags": 4},
152 {"matrix": [0, 7], "x": 89, "y": 0, "flags": 4},
153 {"matrix": [0, 8], "x": 99, "y": 0, "flags": 4},
154 {"matrix": [0, 9], "x": 115, "y": 0, "flags": 4},
155 {"matrix": [0, 10], "x": 125, "y": 0, "flags": 4},
156 {"matrix": [0, 11], "x": 136, "y": 0, "flags": 4},
157 {"matrix": [0, 12], "x": 146, "y": 0, "flags": 4},
158 {"matrix": [1, 0], "x": 159, "y": 0, "flags": 4},
159 {"matrix": [1, 1], "x": 169, "y": 0, "flags": 4},
160 {"matrix": [1, 2], "x": 180, "y": 0, "flags": 4},
161
162 {"matrix": [1, 3], "x": 0, "y": 15, "flags": 4},
163 {"matrix": [1, 4], "x": 10, "y": 15, "flags": 4},
164 {"matrix": [1, 5], "x": 21, "y": 15, "flags": 4},
165 {"matrix": [1, 6], "x": 31, "y": 15, "flags": 4},
166 {"matrix": [1, 7], "x": 42, "y": 15, "flags": 4},
167 {"matrix": [1, 8], "x": 52, "y": 15, "flags": 4},
168 {"matrix": [1, 9], "x": 63, "y": 15, "flags": 4},
169 {"matrix": [1, 10], "x": 73, "y": 15, "flags": 4},
170 {"matrix": [1, 11], "x": 83, "y": 15, "flags": 4},
171 {"matrix": [1, 12], "x": 94, "y": 15, "flags": 4},
172 {"matrix": [2, 0], "x": 104, "y": 15, "flags": 4},
173 {"matrix": [2, 1], "x": 115, "y": 15, "flags": 4},
174 {"matrix": [2, 2], "x": 125, "y": 15, "flags": 4},
175 {"matrix": [2, 3], "x": 141, "y": 15, "flags": 4},
176 {"matrix": [2, 4], "x": 159, "y": 15, "flags": 4},
177 {"matrix": [2, 5], "x": 169, "y": 15, "flags": 4},
178 {"matrix": [2, 6], "x": 180, "y": 15, "flags": 4},
179 {"matrix": [2, 7], "x": 193, "y": 15, "flags": 4},
180 {"matrix": [2, 8], "x": 203, "y": 15, "flags": 4},
181 {"matrix": [2, 9], "x": 214, "y": 15, "flags": 4},
182 {"matrix": [2, 10], "x": 224, "y": 15, "flags": 4},
183
184 {"matrix": [2, 11], "x": 3, "y": 27, "flags": 4},
185 {"matrix": [2, 12], "x": 16, "y": 27, "flags": 4},
186 {"matrix": [3, 0], "x": 26, "y": 27, "flags": 4},
187 {"matrix": [3, 1], "x": 36, "y": 27, "flags": 4},
188 {"matrix": [3, 2], "x": 47, "y": 27, "flags": 4},
189 {"matrix": [3, 3], "x": 57, "y": 27, "flags": 4},
190 {"matrix": [3, 4], "x": 68, "y": 27, "flags": 4},
191 {"matrix": [3, 5], "x": 78, "y": 27, "flags": 4},
192 {"matrix": [3, 6], "x": 89, "y": 27, "flags": 4},
193 {"matrix": [3, 7], "x": 99, "y": 27, "flags": 4},
194 {"matrix": [3, 8], "x": 109, "y": 27, "flags": 4},
195 {"matrix": [3, 9], "x": 120, "y": 27, "flags": 4},
196 {"matrix": [3, 10], "x": 130, "y": 27, "flags": 4},
197 {"matrix": [3, 11], "x": 143, "y": 27, "flags": 4},
198 {"matrix": [3, 12], "x": 159, "y": 27, "flags": 4},
199 {"matrix": [4, 0], "x": 169, "y": 27, "flags": 4},
200 {"matrix": [4, 1], "x": 180, "y": 27, "flags": 4},
201 {"matrix": [4, 2], "x": 193, "y": 27, "flags": 4},
202 {"matrix": [4, 3], "x": 203, "y": 27, "flags": 4},
203 {"matrix": [4, 4], "x": 214, "y": 27, "flags": 4},
204
205 {"matrix": [4, 5], "x": 4, "y": 40, "flags": 4},
206 {"matrix": [4, 6], "x": 18, "y": 40, "flags": 4},
207 {"matrix": [4, 7], "x": 29, "y": 40, "flags": 4},
208 {"matrix": [4, 8], "x": 39, "y": 40, "flags": 4},
209 {"matrix": [4, 9], "x": 50, "y": 40, "flags": 4},
210 {"matrix": [4, 10], "x": 60, "y": 40, "flags": 4},
211 {"matrix": [4, 11], "x": 70, "y": 40, "flags": 4},
212 {"matrix": [4, 12], "x": 81, "y": 40, "flags": 4},
213 {"matrix": [5, 0], "x": 91, "y": 40, "flags": 4},
214 {"matrix": [5, 1], "x": 102, "y": 40, "flags": 4},
215 {"matrix": [5, 2], "x": 112, "y": 40, "flags": 4},
216 {"matrix": [5, 3], "x": 123, "y": 40, "flags": 4},
217 {"matrix": [5, 4], "x": 139, "y": 40, "flags": 4},
218 {"matrix": [5, 5], "x": 193, "y": 40, "flags": 4},
219 {"matrix": [5, 6], "x": 203, "y": 40, "flags": 4},
220 {"matrix": [5, 7], "x": 214, "y": 40, "flags": 4},
221 {"matrix": [5, 8], "x": 224, "y": 34, "flags": 4},
222
223 {"matrix": [5, 9], "x": 7, "y": 52, "flags": 4},
224 {"matrix": [5, 10], "x": 23, "y": 52, "flags": 4},
225 {"matrix": [5, 11], "x": 34, "y": 52, "flags": 4},
226 {"matrix": [5, 12], "x": 44, "y": 52, "flags": 4},
227 {"matrix": [6, 0], "x": 55, "y": 52, "flags": 4},
228 {"matrix": [6, 1], "x": 65, "y": 52, "flags": 4},
229 {"matrix": [6, 2], "x": 76, "y": 52, "flags": 4},
230 {"matrix": [6, 3], "x": 86, "y": 52, "flags": 4},
231 {"matrix": [6, 4], "x": 96, "y": 52, "flags": 4},
232 {"matrix": [6, 5], "x": 107, "y": 52, "flags": 4},
233 {"matrix": [6, 6], "x": 117, "y": 52, "flags": 4},
234 {"matrix": [6, 7], "x": 137, "y": 52, "flags": 4},
235 {"matrix": [6, 8], "x": 169, "y": 52, "flags": 4},
236 {"matrix": [6, 9], "x": 193, "y": 52, "flags": 4},
237 {"matrix": [6, 10], "x": 203, "y": 52, "flags": 4},
238 {"matrix": [6, 11], "x": 214, "y": 52, "flags": 4},
239 {"matrix": [6, 12], "x": 224, "y": 58, "flags": 4},
240
241 {"matrix": [7, 0], "x": 1, "y": 64, "flags": 4},
242 {"matrix": [7, 1], "x": 14, "y": 64, "flags": 4},
243 {"matrix": [7, 2], "x": 27, "y": 64, "flags": 4},
244 {"matrix": [7, 3], "x": 66, "y": 64, "flags": 4},
245 {"matrix": [7, 4], "x": 105, "y": 64, "flags": 4},
246 {"matrix": [7, 5], "x": 118, "y": 64, "flags": 4},
247 {"matrix": [7, 6], "x": 131, "y": 64, "flags": 4},
248 {"matrix": [7, 7], "x": 145, "y": 64, "flags": 4},
249 {"matrix": [7, 8], "x": 159, "y": 64, "flags": 4},
250 {"matrix": [7, 9], "x": 169, "y": 64, "flags": 4},
251 {"matrix": [7, 10], "x": 180, "y": 64, "flags": 4},
252 {"matrix": [7, 11], "x": 198, "y": 64, "flags": 4},
253 {"matrix": [7, 12], "x": 214, "y": 64, "flags": 4}
254 ],
255 "animations": {
256 "alphas_mods": true,
257 "gradient_up_down": true,
258 "gradient_left_right": true,
259 "breathing": true,
260 "band_sat": true,
261 "band_val": true,
262 "band_pinwheel_sat": true,
263 "band_pinwheel_val": true,
264 "band_spiral_sat": true,
265 "band_spiral_val": true,
266 "cycle_all": true,
267 "cycle_left_right": true,
268 "cycle_up_down": true,
269 "cycle_out_in": true,
270 "cycle_out_in_dual": true,
271 "rainbow_moving_chevron": true,
272 "cycle_pinwheel": true,
273 "cycle_spiral": true,
274 "dual_beacon": true,
275 "rainbow_beacon": true,
276 "rainbow_pinwheels": true,
277 "raindrops": true,
278 "jellybean_raindrops": true,
279 "hue_breathing": true,
280 "hue_pendulum": true,
281 "hue_wave": true,
282 "pixel_flow": true,
283 "pixel_rain": true,
284 "typing_heatmap": true,
285 "digital_rain": true,
286 "solid_reactive_simple": true,
287 "solid_reactive": true,
288 "solid_reactive_wide": true,
289 "solid_reactive_cross": true,
290 "solid_reactive_nexus": true,
291 "splash": true,
292 "multisplash": true,
293 "solid_splash": true
294 },
295 "default": {
296 "val": 128
297 },
298 "led_process_limit": 4,
299 "led_flush_limit": 26,
300 "sleep": true
301 }
302}
diff --git a/keyboards/whirlwind_fx_element/keymaps/default/keymap.c b/keyboards/whirlwind_fx_element/keymaps/default/keymap.c
new file mode 100644
index 0000000000..36690aca28
--- /dev/null
+++ b/keyboards/whirlwind_fx_element/keymaps/default/keymap.c
@@ -0,0 +1,42 @@
1// Copyright 2023 WhirlwindFX
2// Copyright 2023 aedanmills
3// SPDX-License-Identifier: GPL-2.0-or-later
4
5#include QMK_KEYBOARD_H
6
7const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
8 /*
9 * ┌───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┐
10 * │Esc│ │F1 │F2 │F3 │F4 │ │F5 │F6 │F7 │F8 │ │F9 │F10│F11│F12│ │PSc│Scr│Pse│
11 * └───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┘
12 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ ┌───┬───┬───┐ ┌───┬───┬───┬───┐
13 * │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Backsp│ │Ins│Hom│PgU│ │Num│ / │ * │ - │
14 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ ├───┼───┼───┤ ├───┼───┼───┼───┤
15 * │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │ │Del│End│PgD│ │ 7 │ 8 │ 9 │ │
16 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┴───┴───┘ ├───┼───┼───┤ + │
17 * │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │ │ 4 │ 5 │ 6 │ │
18 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ ┌───┐ ├───┼───┼───┼───┤
19 * │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift │ │ ↑ │ │ 1 │ 2 │ 3 │ │
20 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ ┌───┼───┼───┐ ├───┴───┼───┤Ent│
21 * │Ctrl│GUI │Alt │ │ Alt│ FN │Menu│Ctrl│ │ ← │ ↓ │ → │ │ 0 │ . │ │
22 * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ └───┴───┴───┘ └───────┴───┴───┘
23 */
24 [0] = LAYOUT_fullsize_ansi(
25 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_PSCR, KC_SCRL, KC_PAUS,
26
27 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_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
28 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, KC_P7, KC_P8, KC_P9, KC_PPLS,
29 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_ENT, KC_P4, KC_P5, KC_P6,
30 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
31 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
32 ),
33 [1] = LAYOUT_fullsize_ansi(
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BRID, KC_BRIU, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_CALC,
35
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RM_VALD, RM_VALU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
37 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_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
38 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,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RM_SPDU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RM_PREV, RM_SPDD, RM_NEXT, KC_TRNS, KC_TRNS
41 )
42};
diff --git a/keyboards/whirlwind_fx_element/mcuconf.h b/keyboards/whirlwind_fx_element/mcuconf.h
new file mode 100644
index 0000000000..c89f7275d4
--- /dev/null
+++ b/keyboards/whirlwind_fx_element/mcuconf.h
@@ -0,0 +1,10 @@
1// Copyright 2023 WhirlwindFX
2// Copyright 2023 aedanmills
3// SPDX-License-Identifier: GPL-2.0-or-later
4
5#pragma once
6
7#include_next <mcuconf.h>
8
9#undef STM32_I2C_USE_I2C1
10#define STM32_I2C_USE_I2C1 TRUE
diff --git a/keyboards/whirlwind_fx_element/readme.md b/keyboards/whirlwind_fx_element/readme.md
new file mode 100644
index 0000000000..362b984772
--- /dev/null
+++ b/keyboards/whirlwind_fx_element/readme.md
@@ -0,0 +1,31 @@
1# WhirlwindFX ElementV2
2
3![WhirlwindFX ElementV2](https://i.imgur.com/Etso6Ni.png)
4
5A full-size (100%) mechanical keyboard with RGB lighting.
6
7* Keyboard Maintainer: [Aedan Mills](https://github.com/aedanmills)
8* Hardware Supported: WhirlwindFX ElementV2
9* Hardware Availability: [WhirlwindFX](https://www.whirlwindfx.com/products/element)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make whirlwind_fx_element:default
14
15Flashing example for this keyboard:
16
17 make whirlwind_fx_element:default:flash
18
19## Bootloader
20
21Enter the bootloader by pressing and holding the reset button on the back of the PCB while plugging in the keyboard. You will have to remove the key caps to access the screws to disassemble the keyboard and access the button.
22
23Don't forget to backup the original firmware before proceeding by using the following dfu-util command with the keyboard in bootloader mode:
24
25 dfu-util --list # Check that the keyboard is listed in DFU mode
26 dfu-util -a 0 -U backup.bin -s 0x08000000 # Save backup as backup.bin
27
28After flashing with QMK, BootMagic can be used to enter the bootloader by holding ESC while plugging in the keyboard.
29
30
31See 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).
diff --git a/keyboards/whirlwind_fx_element/whirlwind_fx_element.c b/keyboards/whirlwind_fx_element/whirlwind_fx_element.c
new file mode 100644
index 0000000000..6f17dbda2f
--- /dev/null
+++ b/keyboards/whirlwind_fx_element/whirlwind_fx_element.c
@@ -0,0 +1,119 @@
1// Copyright 2023 WhirlwindFX
2// Copyright 2023 aedanmills
3// SPDX-License-Identifier: GPL-2.0-or-later
4
5#include QMK_KEYBOARD_H
6
7#ifdef RGB_MATRIX_ENABLE
8const is31fl3741_led_t PROGMEM g_is31fl3741_leds[IS31FL3741_LED_COUNT] = {
9 {0, SW1_CS2, SW1_CS3, SW1_CS1},
10 {0, SW1_CS5, SW1_CS6, SW1_CS4},
11 {0, SW1_CS8, SW1_CS9, SW1_CS7},
12 {0, SW1_CS11, SW1_CS12, SW1_CS10},
13 {0, SW1_CS14, SW1_CS15, SW1_CS13},
14 {0, SW1_CS17, SW1_CS18, SW1_CS16},
15 {0, SW1_CS20, SW1_CS21, SW1_CS19},
16 {0, SW1_CS23, SW1_CS24, SW1_CS22},
17 {0, SW1_CS26, SW1_CS27, SW1_CS25},
18 {0, SW1_CS29, SW1_CS30, SW1_CS28},
19 {0, SW1_CS32, SW1_CS33, SW1_CS31},
20 {0, SW1_CS35, SW1_CS36, SW1_CS34},
21 {0, SW1_CS38, SW1_CS39, SW1_CS37},
22 {0, SW2_CS2, SW2_CS3, SW2_CS1},
23 {0, SW2_CS5, SW2_CS6, SW2_CS4},
24 {0, SW2_CS8, SW2_CS9, SW2_CS7},
25 {0, SW2_CS11, SW2_CS12, SW2_CS10},
26 {0, SW2_CS14, SW2_CS15, SW2_CS13},
27 {0, SW2_CS17, SW2_CS18, SW2_CS16},
28 {0, SW2_CS20, SW2_CS21, SW2_CS19},
29 {0, SW2_CS23, SW2_CS24, SW2_CS22},
30 {0, SW2_CS26, SW2_CS27, SW2_CS25},
31 {0, SW2_CS29, SW2_CS30, SW2_CS28},
32 {0, SW2_CS32, SW2_CS33, SW2_CS31},
33 {0, SW2_CS35, SW2_CS36, SW2_CS34},
34 {0, SW2_CS38, SW2_CS39, SW2_CS37},
35 {0, SW3_CS2, SW3_CS3, SW3_CS1},
36 {0, SW3_CS5, SW3_CS6, SW3_CS4},
37 {0, SW3_CS8, SW3_CS9, SW3_CS7},
38 {0, SW3_CS11, SW3_CS12, SW3_CS10},
39 {0, SW3_CS14, SW3_CS15, SW3_CS13},
40 {0, SW3_CS17, SW3_CS18, SW3_CS16},
41 {0, SW3_CS20, SW3_CS21, SW3_CS19},
42 {0, SW3_CS23, SW3_CS24, SW3_CS22},
43 {0, SW3_CS26, SW3_CS27, SW3_CS25},
44 {0, SW3_CS29, SW3_CS30, SW3_CS28},
45 {0, SW3_CS32, SW3_CS33, SW3_CS31},
46 {0, SW3_CS35, SW3_CS36, SW3_CS34},
47 {0, SW3_CS38, SW3_CS39, SW3_CS37},
48 {0, SW4_CS2, SW4_CS3, SW4_CS1},
49 {0, SW4_CS5, SW4_CS6, SW4_CS4},
50 {0, SW4_CS8, SW4_CS9, SW4_CS7},
51 {0, SW4_CS11, SW4_CS12, SW4_CS10},
52 {0, SW4_CS14, SW4_CS15, SW4_CS13},
53 {0, SW4_CS17, SW4_CS18, SW4_CS16},
54 {0, SW4_CS20, SW4_CS21, SW4_CS19},
55 {0, SW4_CS23, SW4_CS24, SW4_CS22},
56 {0, SW4_CS26, SW4_CS27, SW4_CS25},
57 {0, SW4_CS29, SW4_CS30, SW4_CS28},
58 {0, SW4_CS32, SW4_CS33, SW4_CS31},
59 {0, SW4_CS35, SW4_CS36, SW4_CS34},
60 {0, SW4_CS38, SW4_CS39, SW4_CS37},
61 {0, SW5_CS2, SW5_CS3, SW5_CS1},
62 {0, SW5_CS5, SW5_CS6, SW5_CS4},
63 {0, SW5_CS8, SW5_CS9, SW5_CS7},
64 {0, SW5_CS11, SW5_CS12, SW5_CS10},
65 {0, SW5_CS14, SW5_CS15, SW5_CS13},
66 {0, SW5_CS17, SW5_CS18, SW5_CS16},
67 {0, SW5_CS20, SW5_CS21, SW5_CS19},
68 {0, SW5_CS23, SW5_CS24, SW5_CS22},
69 {0, SW5_CS26, SW5_CS27, SW5_CS25},
70 {0, SW5_CS29, SW5_CS30, SW5_CS28},
71 {0, SW5_CS32, SW5_CS33, SW5_CS31},
72 {0, SW5_CS35, SW5_CS36, SW5_CS34},
73 {0, SW5_CS38, SW5_CS39, SW5_CS37},
74 {0, SW6_CS2, SW6_CS3, SW6_CS1},
75 {0, SW6_CS5, SW6_CS6, SW6_CS4},
76 {0, SW6_CS8, SW6_CS9, SW6_CS7},
77 {0, SW6_CS11, SW6_CS12, SW6_CS10},
78 {0, SW6_CS14, SW6_CS15, SW6_CS13},
79 {0, SW6_CS17, SW6_CS18, SW6_CS16},
80 {0, SW6_CS20, SW6_CS21, SW6_CS19},
81 {0, SW6_CS23, SW6_CS24, SW6_CS22},
82 {0, SW6_CS26, SW6_CS27, SW6_CS25},
83 {0, SW6_CS29, SW6_CS30, SW6_CS28},
84 {0, SW6_CS32, SW6_CS33, SW6_CS31},
85 {0, SW6_CS35, SW6_CS36, SW6_CS34},
86 {0, SW6_CS38, SW6_CS39, SW6_CS37},
87 {0, SW7_CS2, SW7_CS3, SW7_CS1},
88 {0, SW7_CS5, SW7_CS6, SW7_CS4},
89 {0, SW7_CS8, SW7_CS9, SW7_CS7},
90 {0, SW7_CS11, SW7_CS12, SW7_CS10},
91 {0, SW7_CS14, SW7_CS15, SW7_CS13},
92 {0, SW7_CS17, SW7_CS18, SW7_CS16},
93 {0, SW7_CS20, SW7_CS21, SW7_CS19},
94 {0, SW7_CS23, SW7_CS24, SW7_CS22},
95 {0, SW7_CS26, SW7_CS27, SW7_CS25},
96 {0, SW7_CS29, SW7_CS30, SW7_CS28},
97 {0, SW7_CS32, SW7_CS33, SW7_CS31},
98 {0, SW7_CS35, SW7_CS36, SW7_CS34},
99 {0, SW7_CS38, SW7_CS39, SW7_CS37},
100 {0, SW8_CS2, SW8_CS3, SW8_CS1},
101 {0, SW8_CS5, SW8_CS6, SW8_CS4},
102 {0, SW8_CS8, SW8_CS9, SW8_CS7},
103 {0, SW8_CS11, SW8_CS12, SW8_CS10},
104 {0, SW8_CS14, SW8_CS15, SW8_CS13},
105 {0, SW8_CS17, SW8_CS18, SW8_CS16},
106 {0, SW8_CS20, SW8_CS21, SW8_CS19},
107 {0, SW8_CS23, SW8_CS24, SW8_CS22},
108 {0, SW8_CS26, SW8_CS27, SW8_CS25},
109 {0, SW8_CS29, SW8_CS30, SW8_CS28},
110 {0, SW8_CS32, SW8_CS33, SW8_CS31},
111 {0, SW8_CS35, SW8_CS36, SW8_CS34},
112 {0, SW8_CS38, SW8_CS39, SW8_CS37}
113};
114#endif
115void keyboard_pre_init_kb(void) {
116 gpio_set_pin_output(B11); // Required for indicators to work correctly
117
118 keyboard_pre_init_user();
119}