Просмотр исходного кода

Add Waveshare RP2040-Keyboard-3 support (#25269)

Joel Challis 1 год назад
Родитель
Сommit
0f948fe039

+ 84 - 0
keyboards/waveshare/rp2040_keyboard_3/keyboard.json

@@ -0,0 +1,84 @@
+{
+    "manufacturer": "Waveshare",
+    "keyboard_name": "RP2040-Keyboard-3",
+    "maintainer": "zvecr",
+    "url": "https://www.waveshare.com/wiki/RP2040-Keyboard-3",
+    "processor": "RP2040",
+    "bootloader": "rp2040",
+    "usb": {
+        "vid": "0xFEED",
+        "pid": "0x0000",
+        "device_version": "1.0.0"
+    },
+    "features": {
+        "bootmagic": true,
+        "extrakey": true,
+        "mousekey": true,
+        "rgb_matrix": true
+    },
+    "rgb_matrix": {
+        "driver": "ws2812",
+        "animations": {
+            "gradient_left_right": true,
+            "breathing": true,
+            "band_sat": true,
+            "band_val": true,
+            "band_pinwheel_sat": true,
+            "band_pinwheel_val": true,
+            "band_spiral_sat": true,
+            "band_spiral_val": true,
+            "cycle_all": true,
+            "cycle_left_right": true,
+            "cycle_out_in": true,
+            "cycle_out_in_dual": true,
+            "rainbow_moving_chevron": true,
+            "cycle_pinwheel": true,
+            "cycle_spiral": true,
+            "dual_beacon": true,
+            "rainbow_beacon": true,
+            "rainbow_pinwheels": true,
+            "raindrops": true,
+            "jellybean_raindrops": true,
+            "hue_breathing": true,
+            "hue_pendulum": true,
+            "hue_wave": true,
+            "pixel_fractal": true,
+            "pixel_flow": true,
+            "pixel_rain": true,
+            "typing_heatmap": true,
+            "digital_rain": true,
+            "solid_reactive_simple": true,
+            "solid_reactive": true,
+            "solid_reactive_wide": true,
+            "solid_reactive_multiwide": true,
+            "splash": true,
+            "multisplash": true,
+            "solid_splash": true,
+            "solid_multisplash": true
+        },
+        "layout": [
+            {"flags": 4, "matrix": [0, 0], "x": 50, "y": 20},
+            {"flags": 4, "matrix": [0, 1], "x": 112, "y": 20},
+            {"flags": 4, "matrix": [0, 2], "x": 162, "y": 20}
+        ],
+        "sleep": true
+    },
+    "ws2812": {
+        "driver": "vendor",
+        "pin": "GP18"
+    },
+    "matrix_pins": {
+        "direct": [
+            ["GP14", "GP13", "GP12"]
+        ]
+    },
+    "layouts": {
+        "LAYOUT": {
+            "layout": [
+                {"matrix": [0, 0], "x": 0, "y": 0},
+                {"matrix": [0, 1], "x": 1, "y": 0},
+                {"matrix": [0, 2], "x": 2, "y": 0}
+            ]
+        }
+    }
+}

+ 8 - 0
keyboards/waveshare/rp2040_keyboard_3/keymaps/default/keymap.c

@@ -0,0 +1,8 @@
+// Copyright 2025 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+    [0] = LAYOUT(KC_LCTL, KC_C, KC_V)
+};

+ 28 - 0
keyboards/waveshare/rp2040_keyboard_3/readme.md

@@ -0,0 +1,28 @@
+# RP2040-Keyboard-3
+
+![waveshare/rp2040_keyboard_3](https://i.imgur.com/HYoHwVk.jpeg)
+
+RP2040-Keyboard-3 is a high-performance, cost-effective three-key keyboard development board designed by Waveshare.
+It features programmable custom key functions and RGB lighting effects.
+
+* Keyboard Maintainer: [zvecr](https://github.com/zvecr)
+* Hardware Supported: <https://www.waveshare.com/wiki/RP2040-Keyboard-3>
+* Hardware Availability: <https://thepihut.com/products/rp2040-ctrl-c-v-shortcut-keyboard-plus>
+
+Make example for this keyboard (after setting up your build environment):
+
+    make waveshare/rp2040_keyboard_3:default
+
+Flashing example for this keyboard:
+
+    make waveshare/rp2040_keyboard_3:default:flash
+
+See 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).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (top left key) and plug in the keyboard
+* **Physical reset button**: Press and hold the `BOOT` button, then briefly press the `RESET` button on the back of the PCB
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available