summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2024-05-03 00:43:03 +0000
committerQMK Bot <hello@qmk.fm>2024-05-03 00:43:03 +0000
commitb9834744d97f4e1cf338b504156ce187a7e6cfba (patch)
treea7f5ac67c1d7413b8d7162cf3cc33052f98fde84
parentc3ad2e2dafc91bd00f8f6893716330079e5d3d5e (diff)
parente3fed98ecb93123cede36c1b8326882856347690 (diff)
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/cannonkeys/petrichor/config.h9
-rw-r--r--keyboards/cannonkeys/petrichor/info.json394
-rw-r--r--keyboards/cannonkeys/petrichor/keymaps/default/keymap.c24
-rw-r--r--keyboards/cannonkeys/petrichor/keymaps/via/keymap.c24
-rw-r--r--keyboards/cannonkeys/petrichor/keymaps/via/rules.mk1
-rw-r--r--keyboards/cannonkeys/petrichor/petrichor.c40
-rw-r--r--keyboards/cannonkeys/petrichor/readme.md28
-rw-r--r--keyboards/cannonkeys/petrichor/rules.mk1
8 files changed, 521 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/petrichor/config.h b/keyboards/cannonkeys/petrichor/config.h
new file mode 100644
index 0000000000..ea5c26b6c7
--- /dev/null
+++ b/keyboards/cannonkeys/petrichor/config.h
@@ -0,0 +1,9 @@
1// Copyright 2024 Andrew Kannan
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
7#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
8
9#define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 \ No newline at end of file
diff --git a/keyboards/cannonkeys/petrichor/info.json b/keyboards/cannonkeys/petrichor/info.json
new file mode 100644
index 0000000000..ecec61e7cf
--- /dev/null
+++ b/keyboards/cannonkeys/petrichor/info.json
@@ -0,0 +1,394 @@
1{
2 "manufacturer": "CannonKeys",
3 "keyboard_name": "Petrichor",
4 "maintainer": "awkannan",
5 "bootloader": "rp2040",
6 "diode_direction": "COL2ROW",
7 "features": {
8 "bootmagic": true,
9 "command": false,
10 "console": false,
11 "extrakey": true,
12 "mousekey": true,
13 "nkro": true,
14 "rgblight": true
15 },
16 "matrix_pins": {
17 "cols": ["GP28", "GP27", "GP26", "GP25", "GP24", "GP23", "GP22", "GP21", "GP20", "GP19", "GP18", "GP17", "GP16", "GP9", "GP6", "GP5", "GP4", "GP3"],
18 "rows": ["GP13", "GP12", "GP11", "GP10", "GP8"]
19 },
20 "processor": "RP2040",
21 "rgblight": {
22 "animations": {
23 "rainbow_mood": true,
24 "rainbow_swirl": true,
25 "static_gradient": true,
26 "twinkle": true
27 },
28 "led_count": 3,
29 "layers": {
30 "enabled": true,
31 "override_rgb": false
32 },
33 "default": {
34 "animation": "rainbow_swirl"
35 }
36 },
37 "url": "https://cannonkeys.com",
38 "usb": {
39 "device_version": "0.0.1",
40 "pid": "0x0029",
41 "vid": "0xCA04"
42 },
43 "ws2812": {
44 "driver": "vendor",
45 "pin": "GP7"
46 },
47 "layouts": {
48 "LAYOUT_7u_no_split": {
49 "layout": [
50 {"matrix": [0, 0], "x": 0, "y": 0},
51 {"matrix": [0, 1], "x": 1, "y": 0},
52 {"matrix": [0, 2], "x": 2, "y": 0},
53 {"matrix": [0, 3], "x": 3, "y": 0},
54 {"matrix": [0, 4], "x": 4, "y": 0},
55 {"matrix": [0, 5], "x": 5, "y": 0},
56 {"matrix": [0, 6], "x": 6, "y": 0},
57 {"matrix": [0, 7], "x": 7, "y": 0},
58 {"matrix": [0, 8], "x": 8, "y": 0},
59 {"matrix": [0, 9], "x": 9, "y": 0},
60 {"matrix": [0, 10], "x": 10, "y": 0},
61 {"matrix": [0, 11], "x": 11, "y": 0},
62 {"matrix": [0, 12], "x": 12, "y": 0},
63 {"matrix": [0, 13], "x": 13, "y": 0, "w": 2},
64 {"matrix": [0, 14], "x": 15.5, "y": 0},
65 {"matrix": [0, 15], "x": 16.5, "y": 0},
66 {"matrix": [0, 16], "x": 17.5, "y": 0},
67 {"matrix": [0, 17], "x": 18.5, "y": 0},
68 {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
69 {"matrix": [1, 1], "x": 1.5, "y": 1},
70 {"matrix": [1, 2], "x": 2.5, "y": 1},
71 {"matrix": [1, 3], "x": 3.5, "y": 1},
72 {"matrix": [1, 4], "x": 4.5, "y": 1},
73 {"matrix": [1, 5], "x": 5.5, "y": 1},
74 {"matrix": [1, 6], "x": 6.5, "y": 1},
75 {"matrix": [1, 7], "x": 7.5, "y": 1},
76 {"matrix": [1, 8], "x": 8.5, "y": 1},
77 {"matrix": [1, 9], "x": 9.5, "y": 1},
78 {"matrix": [1, 10], "x": 10.5, "y": 1},
79 {"matrix": [1, 11], "x": 11.5, "y": 1},
80 {"matrix": [1, 12], "x": 12.5, "y": 1},
81 {"matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5},
82 {"matrix": [1, 14], "x": 15.5, "y": 1},
83 {"matrix": [1, 15], "x": 16.5, "y": 1},
84 {"matrix": [1, 16], "x": 17.5, "y": 1},
85 {"matrix": [1, 17], "x": 18.5, "y": 1, "h": 2},
86 {"matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
87 {"matrix": [2, 1], "x": 1.75, "y": 2},
88 {"matrix": [2, 2], "x": 2.75, "y": 2},
89 {"matrix": [2, 3], "x": 3.75, "y": 2},
90 {"matrix": [2, 4], "x": 4.75, "y": 2},
91 {"matrix": [2, 5], "x": 5.75, "y": 2},
92 {"matrix": [2, 6], "x": 6.75, "y": 2},
93 {"matrix": [2, 7], "x": 7.75, "y": 2},
94 {"matrix": [2, 8], "x": 8.75, "y": 2},
95 {"matrix": [2, 9], "x": 9.75, "y": 2},
96 {"matrix": [2, 10], "x": 10.75, "y": 2},
97 {"matrix": [2, 11], "x": 11.75, "y": 2},
98 {"matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25},
99 {"matrix": [2, 14], "x": 15.5, "y": 2},
100 {"matrix": [2, 15], "x": 16.5, "y": 2},
101 {"matrix": [2, 16], "x": 17.5, "y": 2},
102 {"matrix": [3, 0], "x": 0, "y": 3, "w": 2.25},
103 {"matrix": [3, 2], "x": 2.25, "y": 3},
104 {"matrix": [3, 3], "x": 3.25, "y": 3},
105 {"matrix": [3, 4], "x": 4.25, "y": 3},
106 {"matrix": [3, 5], "x": 5.25, "y": 3},
107 {"matrix": [3, 6], "x": 6.25, "y": 3},
108 {"matrix": [3, 7], "x": 7.25, "y": 3},
109 {"matrix": [3, 8], "x": 8.25, "y": 3},
110 {"matrix": [3, 9], "x": 9.25, "y": 3},
111 {"matrix": [3, 10], "x": 10.25, "y": 3},
112 {"matrix": [3, 11], "x": 11.25, "y": 3},
113 {"matrix": [3, 12], "x": 12.25, "y": 3, "w": 1.75},
114 {"matrix": [3, 13], "x": 14.25, "y": 3.25},
115 {"matrix": [3, 14], "x": 15.5, "y": 3},
116 {"matrix": [3, 15], "x": 16.5, "y": 3},
117 {"matrix": [3, 16], "x": 17.5, "y": 3},
118 {"matrix": [3, 17], "x": 18.5, "y": 3, "h": 2},
119 {"matrix": [4, 0], "x": 0, "y": 4, "w": 1.5},
120 {"matrix": [4, 1], "x": 1.5, "y": 4, "w": 1.5},
121 {"matrix": [4, 6], "x": 3, "y": 4, "w": 7},
122 {"matrix": [4, 10], "x": 10, "y": 4, "w": 1.5},
123 {"matrix": [4, 11], "x": 11.5, "y": 4, "w": 1.5},
124 {"matrix": [4, 12], "x": 13.25, "y": 4.25},
125 {"matrix": [4, 13], "x": 14.25, "y": 4.25},
126 {"matrix": [4, 14], "x": 15.25, "y": 4.25},
127 {"matrix": [4, 15], "x": 16.5, "y": 4},
128 {"matrix": [4, 16], "x": 17.5, "y": 4}
129 ]
130 },
131 "LAYOUT_all": {
132 "layout": [
133 {"matrix": [0, 0], "x": 0, "y": 0},
134 {"matrix": [0, 1], "x": 1, "y": 0},
135 {"matrix": [0, 2], "x": 2, "y": 0},
136 {"matrix": [0, 3], "x": 3, "y": 0},
137 {"matrix": [0, 4], "x": 4, "y": 0},
138 {"matrix": [0, 5], "x": 5, "y": 0},
139 {"matrix": [0, 6], "x": 6, "y": 0},
140 {"matrix": [0, 7], "x": 7, "y": 0},
141 {"matrix": [0, 8], "x": 8, "y": 0},
142 {"matrix": [0, 9], "x": 9, "y": 0},
143 {"matrix": [0, 10], "x": 10, "y": 0},
144 {"matrix": [0, 11], "x": 11, "y": 0},
145 {"matrix": [0, 12], "x": 12, "y": 0},
146 {"matrix": [0, 13], "x": 13, "y": 0},
147 {"matrix": [2, 12], "x": 14, "y": 0},
148 {"matrix": [0, 14], "x": 15.5, "y": 0},
149 {"matrix": [0, 15], "x": 16.5, "y": 0},
150 {"matrix": [0, 16], "x": 17.5, "y": 0},
151 {"matrix": [0, 17], "x": 18.5, "y": 0},
152 {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
153 {"matrix": [1, 1], "x": 1.5, "y": 1},
154 {"matrix": [1, 2], "x": 2.5, "y": 1},
155 {"matrix": [1, 3], "x": 3.5, "y": 1},
156 {"matrix": [1, 4], "x": 4.5, "y": 1},
157 {"matrix": [1, 5], "x": 5.5, "y": 1},
158 {"matrix": [1, 6], "x": 6.5, "y": 1},
159 {"matrix": [1, 7], "x": 7.5, "y": 1},
160 {"matrix": [1, 8], "x": 8.5, "y": 1},
161 {"matrix": [1, 9], "x": 9.5, "y": 1},
162 {"matrix": [1, 10], "x": 10.5, "y": 1},
163 {"matrix": [1, 11], "x": 11.5, "y": 1},
164 {"matrix": [1, 12], "x": 12.5, "y": 1},
165 {"matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5},
166 {"matrix": [1, 14], "x": 15.5, "y": 1},
167 {"matrix": [1, 15], "x": 16.5, "y": 1},
168 {"matrix": [1, 16], "x": 17.5, "y": 1},
169 {"matrix": [1, 17], "x": 18.5, "y": 1},
170 {"matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
171 {"matrix": [2, 1], "x": 1.75, "y": 2},
172 {"matrix": [2, 2], "x": 2.75, "y": 2},
173 {"matrix": [2, 3], "x": 3.75, "y": 2},
174 {"matrix": [2, 4], "x": 4.75, "y": 2},
175 {"matrix": [2, 5], "x": 5.75, "y": 2},
176 {"matrix": [2, 6], "x": 6.75, "y": 2},
177 {"matrix": [2, 7], "x": 7.75, "y": 2},
178 {"matrix": [2, 8], "x": 8.75, "y": 2},
179 {"matrix": [2, 9], "x": 9.75, "y": 2},
180 {"matrix": [2, 10], "x": 10.75, "y": 2},
181 {"matrix": [2, 11], "x": 11.75, "y": 2},
182 {"matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25},
183 {"matrix": [2, 14], "x": 15.5, "y": 2},
184 {"matrix": [2, 15], "x": 16.5, "y": 2},
185 {"matrix": [2, 16], "x": 17.5, "y": 2},
186 {"matrix": [2, 17], "x": 18.5, "y": 2},
187 {"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25},
188 {"matrix": [3, 1], "x": 1.25, "y": 3},
189 {"matrix": [3, 2], "x": 2.25, "y": 3},
190 {"matrix": [3, 3], "x": 3.25, "y": 3},
191 {"matrix": [3, 4], "x": 4.25, "y": 3},
192 {"matrix": [3, 5], "x": 5.25, "y": 3},
193 {"matrix": [3, 6], "x": 6.25, "y": 3},
194 {"matrix": [3, 7], "x": 7.25, "y": 3},
195 {"matrix": [3, 8], "x": 8.25, "y": 3},
196 {"matrix": [3, 9], "x": 9.25, "y": 3},
197 {"matrix": [3, 10], "x": 10.25, "y": 3},
198 {"matrix": [3, 11], "x": 11.25, "y": 3},
199 {"matrix": [3, 12], "x": 12.25, "y": 3, "w": 1.75},
200 {"matrix": [3, 13], "x": 14.25, "y": 3.25},
201 {"matrix": [3, 14], "x": 15.5, "y": 3},
202 {"matrix": [3, 15], "x": 16.5, "y": 3},
203 {"matrix": [3, 16], "x": 17.5, "y": 3},
204 {"matrix": [3, 17], "x": 18.5, "y": 3},
205 {"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
206 {"matrix": [4, 1], "x": 1.25, "y": 4},
207 {"matrix": [4, 2], "x": 2.25, "y": 4, "w": 1.25},
208 {"matrix": [4, 6], "x": 3.5, "y": 4, "w": 6},
209 {"matrix": [4, 9], "x": 9.5, "y": 4, "w": 1.25},
210 {"matrix": [4, 10], "x": 10.75, "y": 4},
211 {"matrix": [4, 11], "x": 11.75, "y": 4, "w": 1.25},
212 {"matrix": [4, 12], "x": 13.25, "y": 4.25},
213 {"matrix": [4, 13], "x": 14.25, "y": 4.25},
214 {"matrix": [4, 14], "x": 15.25, "y": 4.25},
215 {"matrix": [4, 15], "x": 16.5, "y": 4},
216 {"matrix": [4, 16], "x": 17.5, "y": 4},
217 {"matrix": [4, 17], "x": 18.5, "y": 4}
218 ]
219 },
220 "LAYOUT_default": {
221 "layout": [
222 {"matrix": [0, 0], "x": 0, "y": 0},
223 {"matrix": [0, 1], "x": 1, "y": 0},
224 {"matrix": [0, 2], "x": 2, "y": 0},
225 {"matrix": [0, 3], "x": 3, "y": 0},
226 {"matrix": [0, 4], "x": 4, "y": 0},
227 {"matrix": [0, 5], "x": 5, "y": 0},
228 {"matrix": [0, 6], "x": 6, "y": 0},
229 {"matrix": [0, 7], "x": 7, "y": 0},
230 {"matrix": [0, 8], "x": 8, "y": 0},
231 {"matrix": [0, 9], "x": 9, "y": 0},
232 {"matrix": [0, 10], "x": 10, "y": 0},
233 {"matrix": [0, 11], "x": 11, "y": 0},
234 {"matrix": [0, 12], "x": 12, "y": 0},
235 {"matrix": [0, 13], "x": 13, "y": 0, "w": 2},
236 {"matrix": [0, 14], "x": 15.5, "y": 0},
237 {"matrix": [0, 15], "x": 16.5, "y": 0},
238 {"matrix": [0, 16], "x": 17.5, "y": 0},
239 {"matrix": [0, 17], "x": 18.5, "y": 0},
240 {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
241 {"matrix": [1, 1], "x": 1.5, "y": 1},
242 {"matrix": [1, 2], "x": 2.5, "y": 1},
243 {"matrix": [1, 3], "x": 3.5, "y": 1},
244 {"matrix": [1, 4], "x": 4.5, "y": 1},
245 {"matrix": [1, 5], "x": 5.5, "y": 1},
246 {"matrix": [1, 6], "x": 6.5, "y": 1},
247 {"matrix": [1, 7], "x": 7.5, "y": 1},
248 {"matrix": [1, 8], "x": 8.5, "y": 1},
249 {"matrix": [1, 9], "x": 9.5, "y": 1},
250 {"matrix": [1, 10], "x": 10.5, "y": 1},
251 {"matrix": [1, 11], "x": 11.5, "y": 1},
252 {"matrix": [1, 12], "x": 12.5, "y": 1},
253 {"matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5},
254 {"matrix": [1, 14], "x": 15.5, "y": 1},
255 {"matrix": [1, 15], "x": 16.5, "y": 1},
256 {"matrix": [1, 16], "x": 17.5, "y": 1},
257 {"matrix": [1, 17], "x": 18.5, "y": 1, "h": 2},
258 {"matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
259 {"matrix": [2, 1], "x": 1.75, "y": 2},
260 {"matrix": [2, 2], "x": 2.75, "y": 2},
261 {"matrix": [2, 3], "x": 3.75, "y": 2},
262 {"matrix": [2, 4], "x": 4.75, "y": 2},
263 {"matrix": [2, 5], "x": 5.75, "y": 2},
264 {"matrix": [2, 6], "x": 6.75, "y": 2},
265 {"matrix": [2, 7], "x": 7.75, "y": 2},
266 {"matrix": [2, 8], "x": 8.75, "y": 2},
267 {"matrix": [2, 9], "x": 9.75, "y": 2},
268 {"matrix": [2, 10], "x": 10.75, "y": 2},
269 {"matrix": [2, 11], "x": 11.75, "y": 2},
270 {"matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25},
271 {"matrix": [2, 14], "x": 15.5, "y": 2},
272 {"matrix": [2, 15], "x": 16.5, "y": 2},
273 {"matrix": [2, 16], "x": 17.5, "y": 2},
274 {"matrix": [3, 0], "x": 0, "y": 3, "w": 2.25},
275 {"matrix": [3, 2], "x": 2.25, "y": 3},
276 {"matrix": [3, 3], "x": 3.25, "y": 3},
277 {"matrix": [3, 4], "x": 4.25, "y": 3},
278 {"matrix": [3, 5], "x": 5.25, "y": 3},
279 {"matrix": [3, 6], "x": 6.25, "y": 3},
280 {"matrix": [3, 7], "x": 7.25, "y": 3},
281 {"matrix": [3, 8], "x": 8.25, "y": 3},
282 {"matrix": [3, 9], "x": 9.25, "y": 3},
283 {"matrix": [3, 10], "x": 10.25, "y": 3},
284 {"matrix": [3, 11], "x": 11.25, "y": 3},
285 {"matrix": [3, 12], "x": 12.25, "y": 3, "w": 1.75},
286 {"matrix": [3, 13], "x": 14.25, "y": 3.25},
287 {"matrix": [3, 14], "x": 15.5, "y": 3},
288 {"matrix": [3, 15], "x": 16.5, "y": 3},
289 {"matrix": [3, 16], "x": 17.5, "y": 3},
290 {"matrix": [3, 17], "x": 18.5, "y": 3, "h": 2},
291 {"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
292 {"matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25},
293 {"matrix": [4, 2], "x": 2.5, "y": 4, "w": 1.25},
294 {"matrix": [4, 6], "x": 3.75, "y": 4, "w": 6.25},
295 {"matrix": [4, 10], "x": 10, "y": 4, "w": 1.5},
296 {"matrix": [4, 11], "x": 11.5, "y": 4, "w": 1.5},
297 {"matrix": [4, 12], "x": 13.25, "y": 4.25},
298 {"matrix": [4, 13], "x": 14.25, "y": 4.25},
299 {"matrix": [4, 14], "x": 15.25, "y": 4.25},
300 {"matrix": [4, 15], "x": 16.5, "y": 4},
301 {"matrix": [4, 16], "x": 17.5, "y": 4}
302 ]
303 },
304 "LAYOUT_iso_6u_split_all": {
305 "layout": [
306 {"matrix": [0, 0], "x": 0, "y": 0},
307 {"matrix": [0, 1], "x": 1, "y": 0},
308 {"matrix": [0, 2], "x": 2, "y": 0},
309 {"matrix": [0, 3], "x": 3, "y": 0},
310 {"matrix": [0, 4], "x": 4, "y": 0},
311 {"matrix": [0, 5], "x": 5, "y": 0},
312 {"matrix": [0, 6], "x": 6, "y": 0},
313 {"matrix": [0, 7], "x": 7, "y": 0},
314 {"matrix": [0, 8], "x": 8, "y": 0},
315 {"matrix": [0, 9], "x": 9, "y": 0},
316 {"matrix": [0, 10], "x": 10, "y": 0},
317 {"matrix": [0, 11], "x": 11, "y": 0},
318 {"matrix": [0, 12], "x": 12, "y": 0},
319 {"matrix": [0, 13], "x": 13, "y": 0},
320 {"matrix": [2, 12], "x": 14, "y": 0},
321 {"matrix": [0, 14], "x": 15.5, "y": 0},
322 {"matrix": [0, 15], "x": 16.5, "y": 0},
323 {"matrix": [0, 16], "x": 17.5, "y": 0},
324 {"matrix": [0, 17], "x": 18.5, "y": 0},
325 {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
326 {"matrix": [1, 1], "x": 1.5, "y": 1},
327 {"matrix": [1, 2], "x": 2.5, "y": 1},
328 {"matrix": [1, 3], "x": 3.5, "y": 1},
329 {"matrix": [1, 4], "x": 4.5, "y": 1},
330 {"matrix": [1, 5], "x": 5.5, "y": 1},
331 {"matrix": [1, 6], "x": 6.5, "y": 1},
332 {"matrix": [1, 7], "x": 7.5, "y": 1},
333 {"matrix": [1, 8], "x": 8.5, "y": 1},
334 {"matrix": [1, 9], "x": 9.5, "y": 1},
335 {"matrix": [1, 10], "x": 10.5, "y": 1},
336 {"matrix": [1, 11], "x": 11.5, "y": 1},
337 {"matrix": [1, 12], "x": 12.5, "y": 1},
338 {"matrix": [2, 13], "x": 13.75, "y": 1, "w": 1.25, "h": 2},
339 {"matrix": [1, 14], "x": 15.5, "y": 1},
340 {"matrix": [1, 15], "x": 16.5, "y": 1},
341 {"matrix": [1, 16], "x": 17.5, "y": 1},
342 {"matrix": [1, 17], "x": 18.5, "y": 1},
343 {"matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
344 {"matrix": [2, 1], "x": 1.75, "y": 2},
345 {"matrix": [2, 2], "x": 2.75, "y": 2},
346 {"matrix": [2, 3], "x": 3.75, "y": 2},
347 {"matrix": [2, 4], "x": 4.75, "y": 2},
348 {"matrix": [2, 5], "x": 5.75, "y": 2},
349 {"matrix": [2, 6], "x": 6.75, "y": 2},
350 {"matrix": [2, 7], "x": 7.75, "y": 2},
351 {"matrix": [2, 8], "x": 8.75, "y": 2},
352 {"matrix": [2, 9], "x": 9.75, "y": 2},
353 {"matrix": [2, 10], "x": 10.75, "y": 2},
354 {"matrix": [2, 11], "x": 11.75, "y": 2},
355 {"matrix": [1, 13], "x": 12.75, "y": 2},
356 {"matrix": [2, 14], "x": 15.5, "y": 2},
357 {"matrix": [2, 15], "x": 16.5, "y": 2},
358 {"matrix": [2, 16], "x": 17.5, "y": 2},
359 {"matrix": [2, 17], "x": 18.5, "y": 2},
360 {"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25},
361 {"matrix": [3, 1], "x": 1.25, "y": 3},
362 {"matrix": [3, 2], "x": 2.25, "y": 3},
363 {"matrix": [3, 3], "x": 3.25, "y": 3},
364 {"matrix": [3, 4], "x": 4.25, "y": 3},
365 {"matrix": [3, 5], "x": 5.25, "y": 3},
366 {"matrix": [3, 6], "x": 6.25, "y": 3},
367 {"matrix": [3, 7], "x": 7.25, "y": 3},
368 {"matrix": [3, 8], "x": 8.25, "y": 3},
369 {"matrix": [3, 9], "x": 9.25, "y": 3},
370 {"matrix": [3, 10], "x": 10.25, "y": 3},
371 {"matrix": [3, 11], "x": 11.25, "y": 3},
372 {"matrix": [3, 12], "x": 12.25, "y": 3, "w": 1.75},
373 {"matrix": [3, 13], "x": 14.25, "y": 3.25},
374 {"matrix": [3, 14], "x": 15.5, "y": 3},
375 {"matrix": [3, 15], "x": 16.5, "y": 3},
376 {"matrix": [3, 16], "x": 17.5, "y": 3},
377 {"matrix": [3, 17], "x": 18.5, "y": 3},
378 {"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
379 {"matrix": [4, 1], "x": 1.25, "y": 4},
380 {"matrix": [4, 2], "x": 2.25, "y": 4, "w": 1.25},
381 {"matrix": [4, 6], "x": 3.5, "y": 4, "w": 6},
382 {"matrix": [4, 9], "x": 9.5, "y": 4, "w": 1.25},
383 {"matrix": [4, 10], "x": 10.75, "y": 4},
384 {"matrix": [4, 11], "x": 11.75, "y": 4, "w": 1.25},
385 {"matrix": [4, 12], "x": 13.25, "y": 4.25},
386 {"matrix": [4, 13], "x": 14.25, "y": 4.25},
387 {"matrix": [4, 14], "x": 15.25, "y": 4.25},
388 {"matrix": [4, 15], "x": 16.5, "y": 4},
389 {"matrix": [4, 16], "x": 17.5, "y": 4},
390 {"matrix": [4, 17], "x": 18.5, "y": 4}
391 ]
392 }
393 }
394}
diff --git a/keyboards/cannonkeys/petrichor/keymaps/default/keymap.c b/keyboards/cannonkeys/petrichor/keymaps/default/keymap.c
new file mode 100644
index 0000000000..8f2a516b73
--- /dev/null
+++ b/keyboards/cannonkeys/petrichor/keymaps/default/keymap.c
@@ -0,0 +1,24 @@
1// Copyright 2024 Andrew Kannan
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include QMK_KEYBOARD_H
5
6const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7
8 [0] = LAYOUT_all( /* Base */
9 QK_GESC, 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_DEL, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
10 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_P7, KC_P8, KC_P9, KC_PPLS,
11 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, KC_PPLS,
12 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_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
13 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
14 ),
15
16 [1] = LAYOUT_all( /* Function Layer */
17 QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______,
18 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
19 _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
20 _______, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
21 _______, _______, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______
22 ),
23
24}; \ No newline at end of file
diff --git a/keyboards/cannonkeys/petrichor/keymaps/via/keymap.c b/keyboards/cannonkeys/petrichor/keymaps/via/keymap.c
new file mode 100644
index 0000000000..8f2a516b73
--- /dev/null
+++ b/keyboards/cannonkeys/petrichor/keymaps/via/keymap.c
@@ -0,0 +1,24 @@
1// Copyright 2024 Andrew Kannan
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include QMK_KEYBOARD_H
5
6const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7
8 [0] = LAYOUT_all( /* Base */
9 QK_GESC, 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_DEL, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
10 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_P7, KC_P8, KC_P9, KC_PPLS,
11 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, KC_PPLS,
12 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_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
13 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT
14 ),
15
16 [1] = LAYOUT_all( /* Function Layer */
17 QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______,
18 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
19 _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
20 _______, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
21 _______, _______, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______
22 ),
23
24}; \ No newline at end of file
diff --git a/keyboards/cannonkeys/petrichor/keymaps/via/rules.mk b/keyboards/cannonkeys/petrichor/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/cannonkeys/petrichor/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/cannonkeys/petrichor/petrichor.c b/keyboards/cannonkeys/petrichor/petrichor.c
new file mode 100644
index 0000000000..a80036c7b3
--- /dev/null
+++ b/keyboards/cannonkeys/petrichor/petrichor.c
@@ -0,0 +1,40 @@
1// Copyright 2023 Andrew Kannan
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "quantum.h"
5
6const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
7 {2, 1, HSV_PURPLE}
8);
9const rgblight_segment_t PROGMEM my_numlock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
10 {1, 1, HSV_GREEN}
11);
12const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
13 {0, 1, HSV_BLUE}
14);
15
16const rgblight_segment_t* const PROGMEM enabled_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
17 my_capslock_layer,
18 my_numlock_layer,
19 my_layer1_layer
20);
21
22void keyboard_post_init_kb(void) {
23 keyboard_post_init_user();
24 rgblight_layers = enabled_rgb_layers;
25}
26
27bool led_update_kb(led_t led_state) {
28 if(!led_update_user(led_state)){
29 return false;
30 }
31 rgblight_set_layer_state(0, led_state.caps_lock);
32 rgblight_set_layer_state(1, led_state.num_lock);
33 return true;
34}
35
36layer_state_t layer_state_set_kb(layer_state_t state) {
37 state = layer_state_set_user(state);
38 rgblight_set_layer_state(2, layer_state_cmp(state, 1));
39 return state;
40}
diff --git a/keyboards/cannonkeys/petrichor/readme.md b/keyboards/cannonkeys/petrichor/readme.md
new file mode 100644
index 0000000000..5eb1c96e48
--- /dev/null
+++ b/keyboards/cannonkeys/petrichor/readme.md
@@ -0,0 +1,28 @@
1# Petrichor PCB
2
3Petrichor PCB from CannonKeys for the AKB Petrichor keyboard
4(This firmware is used for both the hotswap and solderable variant)
5
6* Keyboard Maintainer: [Andrew Kannan](https://github.com/awkannan)
7* Hardware Supported: RP2040
8* Hardware Availability: [CannonKeys](https://cannonkeys.com)
9
10
11Make example for this keyboard (after setting up your build environment):
12
13 make cannonkeys/petrichor:default
14
15Flashing example for this keyboard:
16
17 make cannonkeys/petrichor: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 4 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**: Hold the "BOOTSEL" button on the back of the PCB and briefly press the "REBOOT" button on the back of the PCB.
27* **Top side reboot pads**: Bridge the reboot pads on the top of the PCB with a pair of tweezers twice in a row, quickly.
28* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
diff --git a/keyboards/cannonkeys/petrichor/rules.mk b/keyboards/cannonkeys/petrichor/rules.mk
new file mode 100644
index 0000000000..6e7633bfe0
--- /dev/null
+++ b/keyboards/cannonkeys/petrichor/rules.mk
@@ -0,0 +1 @@
# This file intentionally left blank