39958fe85458ac9cc29694a0bb49c12e1b561d71

Author
Lostdotfish <davidharley@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

[Keyboard] Add Orbweaver (#24692)

* Create README.md

* Add files via upload

* Create keymap.c

* Update README.md

* Update keyboards/lostdotfish/rp2040_orbweaver/README.md

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/lostdotfish/rp2040_orbweaver/keyboard.json

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Rename README.md to readme.md

* Update readme.md

* Update keyboards/lostdotfish/rp2040_orbweaver/keyboard.json

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/lostdotfish/rp2040_orbweaver/mcuconf.h

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboard.json

* Update keyboards/lostdotfish/rp2040_orbweaver/config.h

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboard.json

* Update mcuconf.h

* Update rp2040_orbweaver.c

* Delete keyboards/lostdotfish/rp2040_orbweaver/halconf.h

* Update config.h

* Update readme.md

* Update readme.md

* Update readme.md

* Update keyboards/lostdotfish/rp2040_orbweaver/keyboard.json

---------

Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: jack <jack@pngu.org>

Diff

This diff is truncated to protect this page.

  1diff --git a/keyboards/lostdotfish/rp2040_orbweaver/config.h b/keyboards/lostdotfish/rp2040_orbweaver/config.h
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..da2709dc5b39b2953e58529c212059f688a50c2d
  4--- /dev/null
  5+++ b/keyboards/lostdotfish/rp2040_orbweaver/config.h
  6@@ -0,0 +1,21 @@
  7+/* Copyright 2024 lostdotfish
  8+*
  9+* This program is free software: you can redistribute it and/or modify
 10+* it under the terms of the GNU General Public License as published by
 11+* the Free Software Foundation, either version 2 of the License, or
 12+* (at your option) any later version.
 13+*
 14+* This program is distributed in the hope that it will be useful,
 15+* but WITHOUT ANY WARRANTY; without even the implied warranty of
 16+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17+* GNU General Public License for more details.
 18+*
 19+* You should have received a copy of the GNU General Public License
 20+* along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
 21+*/
 22+
 23+#pragma once
 24+#define I2C_DRIVER I2CD0
 25+#define I2C1_SDA_PIN GP12
 26+#define I2C1_SCL_PIN GP13
 27+#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_GND
 28diff --git a/keyboards/lostdotfish/rp2040_orbweaver/keyboard.json b/keyboards/lostdotfish/rp2040_orbweaver/keyboard.json
 29new file mode 100644
 30index 0000000000000000000000000000000000000000..b711d9c4a89f0871768406b796c6417b561a88d6
 31--- /dev/null
 32+++ b/keyboards/lostdotfish/rp2040_orbweaver/keyboard.json
 33@@ -0,0 +1,141 @@
 34+
 35+{
 36+    "manufacturer": "Lostdotfish",
 37+    "keyboard_name": "rp2040_orbweaver",
 38+    "maintainer": "Lostdotfish",
 39+    "url": "https://geekhack.org/index.php?topic=124092.0",
 40+    "bootloader": "rp2040",
 41+    "processor": "RP2040",
 42+    "usb": {
 43+        "device_version": "1.0.0",
 44+        "pid": "0x0000",
 45+        "vid": "0xFEED"
 46+    },
 47+    "diode_direction": "ROW2COL",
 48+    "features": {
 49+        "bootmagic": true,
 50+        "command": false,
 51+        "console": false,
 52+        "extrakey": true,
 53+        "mousekey": true,
 54+        "nkro": true,
 55+        "rgb_matrix": true
 56+    },
 57+    "rgb_matrix": {
 58+        "driver": "is31fl3731",
 59+        "layout": [
 60+            {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
 61+            {"x": 20, "y": 0, "flags": 4},
 62+            {"matrix": [0, 1], "x": 40, "y": 0, "flags": 4},
 63+            {"matrix": [0, 2], "x": 60, "y": 0, "flags": 4},
 64+            {"matrix": [0, 3], "x": 80, "y": 0, "flags": 4},
 65+            {"matrix": [0, 4], "x": 0, "y": 20, "flags": 4},
 66+            {"matrix": [1, 0], "x": 20, "y": 20, "flags": 4},
 67+            {"matrix": [1, 1], "x": 40, "y": 20, "flags": 4},
 68+            {"matrix": [1, 2], "x": 60, "y": 20, "flags": 4},
 69+            {"matrix": [1, 3], "x": 80, "y": 20, "flags": 4},
 70+            {"matrix": [1, 4], "x": 0, "y": 40, "flags": 4},
 71+            {"matrix": [2, 0], "x": 20, "y": 40, "flags": 4},
 72+            {"matrix": [2, 1], "x": 40, "y": 40, "flags": 4},
 73+            {"matrix": [2, 2], "x": 60, "y": 40, "flags": 4},
 74+            {"matrix": [2, 3], "x": 80, "y": 40, "flags": 4},
 75+            {"matrix": [2, 4], "x": 0, "y": 60, "flags": 4},
 76+            {"matrix": [3, 0], "x": 20, "y": 60, "flags": 4},
 77+            {"matrix": [3, 1], "x": 40, "y": 60, "flags": 4},
 78+            {"matrix": [3, 2], "x": 60, "y": 60, "flags": 4},
 79+            {"matrix": [3, 4], "x": 80, "y": 60, "flags": 4}
 80+        ],
 81+        "led_flush_limit": 26,
 82+        "led_process_limit": 5,
 83+        "max_brightness": 220,
 84+        "sleep": true,
 85+        "center_point": [40, 30],
 86+        "animations": {
 87+            "alphas_mods": true,
 88+            "gradient_up_down": true,
 89+            "gradient_left_right": true,
 90+            "breathing": true,
 91+            "band_sat": true,
 92+            "band_val": true,
 93+            "band_pinwheel_sat": true,
 94+            "band_pinwheel_val": true,
 95+            "band_spiral_sat": true,
 96+            "band_spiral_val": true,
 97+            "cycle_all": true,
 98+            "cycle_left_right": true,
 99+            "cycle_up_down": true,
100+            "cycle_out_in": true,
101+            "cycle_out_in_dual": true,
102+            "rainbow_moving_chevron": true,
103+            "cycle_pinwheel": true,
104+            "cycle_spiral": true,
105+            "dual_beacon": true,
106+            "rainbow_beacon": true,
107+            "rainbow_pinwheels": true,
108+            "flower_blooming": true,
109+            "raindrops": true,
110+            "jellybean_raindrops": true,
111+            "hue_breathing": true,
112+            "hue_pendulum": true,
113+            "hue_wave": true,
114+            "pixel_fractal": true,
115+            "pixel_flow": true,
116+            "pixel_rain": true,
117+            "typing_heatmap": true,
118+            "digital_rain": true,
119+            "solid_reactive_simple": true,
120+            "solid_reactive": true,
121+            "solid_reactive_wide": true,
122+            "solid_reactive_multiwide": true,
123+            "solid_reactive_cross": true,
124+            "solid_reactive_multicross": true,
125+            "solid_reactive_nexus": true,
126+            "solid_reactive_multinexus": true,
127+            "splash": true,
128+            "multisplash": true,
129+            "solid_splash": true,
130+            "solid_multisplash": true,
131+            "starlight": true,
132+            "starlight_dual_sat": true,
133diff --git a/keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c b/keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c
134new file mode 100644
135index 0000000000000000000000000000000000000000..f98f656bc9fa9aee5368900b954af9ec24c627e3
136--- /dev/null
137+++ b/keyboards/lostdotfish/rp2040_orbweaver/keymaps/default/keymap.c
138@@ -0,0 +1,78 @@
139+/* Copyright 2024 lostdotfish
140+*
141+* This program is free software: you can redistribute it and/or modify
142+* it under the terms of the GNU General Public License as published by
143+* the Free Software Foundation, either version 2 of the License, or
144+* (at your option) any later version.
145+*
146+* This program is distributed in the hope that it will be useful,
147+* but WITHOUT ANY WARRANTY; without even the implied warranty of
148+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
149+* GNU General Public License for more details.
150+*
151+* You should have received a copy of the GNU General Public License
152+* along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
153+*/
154+
155+#include QMK_KEYBOARD_H
156+
157+
158+enum orbweaver_layers {
159+  _DEFAULT,
160+  _LETTERS,
161+  _CONTROL
162+};
163+
164+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
165+
166+//generic default keymap with Razor defaults (+ 20 shifts layer)
167+
168+     [_DEFAULT] = LAYOUT(
169+        KC_ESC, KC_1, KC_2, KC_3, KC_4,
170+        KC_TAB, KC_Q, KC_W, KC_E, KC_R,
171+        KC_CAPS, KC_A, KC_S, KC_D, KC_F,
172+        KC_LSFT, KC_Z, KC_X, KC_C, TO(1),
173+        KC_LALT, KC_UP, KC_DOWN, KC_RIGHT, KC_LEFT,
174+        KC_SPACE
175+    ),
176+
177+//Second example keymap with all modifier keys replaced with numbers or letters
178+     
179+   [_LETTERS] = LAYOUT(
180+        KC_0, KC_1, KC_2, KC_3, KC_4,
181+        KC_I, KC_Q, KC_W, KC_E, KC_R,
182+        KC_J, KC_A, KC_S, KC_D, KC_F,
183+        KC_K, KC_Z, KC_X, KC_C, TO(2),
184+        KC_L, KC_UP, KC_DOWN, KC_RIGHT, KC_LEFT,
185+        KC_SPACE
186+    ),
187+
188+//, RGB Contol Keymap
189+   [_CONTROL] = LAYOUT(
190+        RM_NEXT, RM_HUEU, RM_SATU, RM_VALU, RM_SPDU,
191+        RM_PREV, RM_HUED, RM_SATD, RM_VALD, RM_SPDD,
192+        RM_TOGG, KC_A, KC_S, KC_D, KC_F,
193+        KC_K, KC_Z, KC_X, KC_C, TO(0),
194+        KC_L, KC_UP, KC_DOWN, KC_RIGHT, KC_LEFT,
195+        KC_SPACE
196+    ) 
197+
198+};
199+
200+layer_state_t layer_state_set_user(layer_state_t state) {
201+    gpio_write_pin_high(GP23);
202+    gpio_write_pin_high(GP24);
203+    gpio_write_pin_high(GP25);
204+    switch (get_highest_layer(state)) {
205+        case _DEFAULT:
206+            gpio_write_pin_low(GP23);
207+            break;
208+        case _LETTERS:
209+            gpio_write_pin_low(GP25);
210+            break;
211+        case _CONTROL:
212+            gpio_write_pin_low(GP24);
213+            break;
214+    }
215+    return state;
216+}
217diff --git a/keyboards/lostdotfish/rp2040_orbweaver/mcuconf.h b/keyboards/lostdotfish/rp2040_orbweaver/mcuconf.h
218new file mode 100644
219index 0000000000000000000000000000000000000000..f9b642b1f4e29a57b2b0c6fb23c60d3a09911abc
220--- /dev/null
221+++ b/keyboards/lostdotfish/rp2040_orbweaver/mcuconf.h
222@@ -0,0 +1,9 @@
223+// Copyright 2023 zzeneg (@zzeneg)
224+// SPDX-License-Identifier: GPL-2.0-or-later
225+
226+#pragma once
227+
228+#include_next <mcuconf.h>
229+
230+#undef RP_I2C_USE_I2C0
231+#define RP_I2C_USE_I2C0 TRUE
232diff --git a/keyboards/lostdotfish/rp2040_orbweaver/readme.md b/keyboards/lostdotfish/rp2040_orbweaver/readme.md
233new file mode 100644
234index 0000000000000000000000000000000000000000..0a4a64d7d61c9d89bb7d8d2fe12474b7664d3205
235--- /dev/null
236+++ b/keyboards/lostdotfish/rp2040_orbweaver/readme.md
237@@ -0,0 +1,51 @@
238+# rp2040_orbweaver
239+QMK firmware for RP2040 based MCU replacement PCB for the Razer Orbweaver gaming keypad
240+
241+![RP2040 Orbweaver](https://i.imgur.com/GCPRUbs.png)
242+
243+
244+This firmware is for the Razer Orbweaver Chroma keypad with a custom, plug and play, RP2040 MCU PCB. For installation instructions and board availability see [geekhack](https://geekhack.org/index.php?topic=124092.0).
245+
246diff --git a/keyboards/lostdotfish/rp2040_orbweaver/rp2040_orbweaver.c b/keyboards/lostdotfish/rp2040_orbweaver/rp2040_orbweaver.c
247new file mode 100644
248index 0000000000000000000000000000000000000000..a1ba7c8d1facdf0f5e14b4fe96264de541288f0f
249--- /dev/null
250+++ b/keyboards/lostdotfish/rp2040_orbweaver/rp2040_orbweaver.c
251@@ -0,0 +1,64 @@
252+/* Copyright 2024 lostdotfish
253+*
254+* This program is free software: you can redistribute it and/or modify
255+* it under the terms of the GNU General Public License as published by
256+* the Free Software Foundation, either version 2 of the License, or
257+* (at your option) any later version.
258+*
259+* This program is distributed in the hope that it will be useful,
260+* but WITHOUT ANY WARRANTY; without even the implied warranty of
261+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
262+* GNU General Public License for more details.
263+*
264+* You should have received a copy of the GNU General Public License
265+* along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.
266+*/
267+
268+#include "rgb_matrix.h"
269+#include "quantum.h"
270+
271+void keyboard_pre_init_kb(void) {
272+    // Initialize Reset pins
273+ 
274+    gpio_set_pin_output(GP23);
275+    gpio_set_pin_output(GP24);
276+    gpio_set_pin_output(GP25);
277+
278+    gpio_write_pin_high(GP23);
279+    gpio_write_pin_high(GP24);
280+    gpio_write_pin_high(GP25);
281+
282+    keyboard_pre_init_user();
283+}
284+
285+
286+
287+const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = {
288+/* Refer to IS31 manual for these locations
289+ *   driver
290+ *   |  R location
291+ *   |  |      G location
292+ *   |  |      |      B location
293+ *   |  |      |      | */
294+    {0, C9_1,  C8_1,  C7_1}, //top left key.
295+    {0, C9_2,  C8_2,  C7_2},	
296+    {0, C9_3,  C8_3,  C7_3},
297+    {0, C9_4,  C8_4,  C7_4},
298+    {0, C9_5,  C8_5,  C7_5}, //top right key. 
299+    {0, C9_6,  C8_6,  C7_6},
300+    {0, C9_7,  C8_7,  C6_6},      
301+    {0, C9_8,  C7_7,  C6_7},
302+    {0, C1_8,  C2_8,  C3_8},  
303+    {0, C1_7,  C2_7,  C3_7},
304+    {0, C1_6,  C2_6,  C3_6},
305+    {0, C1_5,  C2_5,  C3_5},  
306+    {0, C1_4,  C2_4,  C3_4},  
307+    {0, C1_3,  C2_3,  C3_3},  
308+    {0, C1_2,  C2_2,  C4_3},
309+    {0, C1_1,  C3_2,  C4_2}, //lower left key
310+    {0, C9_9,  C8_9,  C7_9},  
311+    {0, C9_10,  C8_10,  C7_10},
312+    {0, C9_11,  C8_11,  C7_11},
313+    {0, C9_12,  C8_12,  C7_12} //lower right key
314+
315+};