mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 13:12:08 +00:00
rotary encoder
This commit is contained in:
parent
bb3af86e1c
commit
27e232c877
@ -4,10 +4,16 @@
|
|||||||
"maintainer": "takashicompany",
|
"maintainer": "takashicompany",
|
||||||
"bootloader": "rp2040",
|
"bootloader": "rp2040",
|
||||||
"diode_direction": "COL2ROW",
|
"diode_direction": "COL2ROW",
|
||||||
|
"encoder": {
|
||||||
|
"rotary": [
|
||||||
|
{"pin_a": "GP14", "pin_b": "GP15"}
|
||||||
|
]
|
||||||
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"bootmagic": true,
|
"bootmagic": true,
|
||||||
"command": false,
|
"command": false,
|
||||||
"console": false,
|
"console": false,
|
||||||
|
"encoder": true,
|
||||||
"extrakey": true,
|
"extrakey": true,
|
||||||
"mousekey": true,
|
"mousekey": true,
|
||||||
"nkro": true
|
"nkro": true
|
||||||
|
@ -23,3 +23,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
KC_F, KC_G, KC_H
|
KC_F, KC_G, KC_H
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(ENCODER_MAP_ENABLE)
|
||||||
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||||
|
[0] = { ENCODER_CCW_CW(KC_1, KC_2) }
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
ENCODER_MAP_ENABLE = yes
|
Loading…
Reference in New Issue
Block a user