Added Encoder support for Soyuz (#25279)

This commit is contained in:
spacehangover 2025-06-06 21:31:08 -03:00 committed by GitHub
parent 608ce78778
commit e8e3c7addb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 4 deletions

View File

@ -8,7 +8,8 @@
"bootmagic": true,
"extrakey": true,
"mousekey": true,
"nkro": true
"nkro": true,
"encoder" : true
},
"matrix_pins": {
"cols": ["GP0", "GP1", "GP2", "GP3", "GP4", "GP5", "GP6"],
@ -20,6 +21,13 @@
"pid": "0x0004",
"vid": "0x5757"
},
"encoder": {
"rotary": [
{"pin_a": "GP16", "pin_b": "GP17"},
{"pin_a": "GP18", "pin_b": "GP19"},
{"pin_a": "GP20", "pin_b": "GP21"}
]
},
"layouts": {
"LAYOUT": {
"layout": [

View File

@ -3,11 +3,17 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17,
KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24
)
};
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
};
#endif

View File

@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes

View File

@ -2,7 +2,7 @@
![soyuz](https://i.imgur.com/KwwORGSh.jpeg)
21 Key and 3 MIDI Potentiometers Macro Keyboard
21 Key, 3 Encoder
* Keyboard Maintainer: [spacehangover](https://github.com/spacehangover)
* Hardware Supported: RP2040 Handwired