diff --git a/keyboards/handwired/sector245/s245/keyboard.json b/keyboards/handwired/sector245/s245/keyboard.json new file mode 100644 index 000000000000..5a74a74f1d49 --- /dev/null +++ b/keyboards/handwired/sector245/s245/keyboard.json @@ -0,0 +1,50 @@ +{ + "keyboard_name": "S245 Streamdeck", + "manufacturer": "sector245", + "maintainer": "sector245", + "processor": "RP2040", + "bootloader": "rp2040", + "debounce": 20, + "usb": { + "vid": "0x5345", + "pid": "0x0001", + "device_version": "1.0.0" + }, + "features": { + "bootmagic": true, + "extrakey": true, + "encoder": true + }, + "matrix_pins": { + "direct": [ + ["GP2", "GP3", "GP13"], + ["GP4", "GP5", "GP6"], + ["GP7", "GP8", "GP9"] + ] + }, + "encoder": { + "rotary": [ + { + "pin_a": "GP10", + "pin_b": "GP11", + "resolution": 2 + } + ] + }, + "community_layouts": ["ortho_3x3"], + "layouts": { + "LAYOUT_ortho_3x3": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0, "encoder": 0}, + {"matrix": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2} + ] + } + } +} diff --git a/keyboards/handwired/sector245/s245/keymaps/default/keymap.c b/keyboards/handwired/sector245/s245/keymaps/default/keymap.c new file mode 100644 index 000000000000..0786a5918cde --- /dev/null +++ b/keyboards/handwired/sector245/s245/keymaps/default/keymap.c @@ -0,0 +1,18 @@ +// Copyright 2025 sector245 (@sector245) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_ortho_3x3( + KC_A, KC_B, KC_C, + KC_D, KC_E, KC_F, + KC_G, KC_H, KC_I + ) +}; + +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { + [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) } +}; +#endif diff --git a/keyboards/handwired/sector245/s245/readme.md b/keyboards/handwired/sector245/s245/readme.md new file mode 100644 index 000000000000..b7fc7956fe88 --- /dev/null +++ b/keyboards/handwired/sector245/s245/readme.md @@ -0,0 +1,24 @@ +# S245 Streamdeck + +A 3x3 macropad with rotary encoder. + +* Keyboard Maintainer: [sector245](https://github.com/sinomau) +* Hardware Supported: S245 Streamdeck PCB, RP2040 + +Make example for this keyboard (after setting up your build environment): + + make handwired/sector245/s245:default + +Flashing example for this keyboard: + + make handwired/sector245/s245: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**: Hold the BOOTSEL button on the Pico and plug in the keyboard +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available