rotary encoder

This commit is contained in:
takashicompany 2024-11-17 01:51:27 +09:00
parent bb3af86e1c
commit 27e232c877
3 changed files with 13 additions and 0 deletions

View File

@ -4,10 +4,16 @@
"maintainer": "takashicompany",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "GP14", "pin_b": "GP15"}
]
},
"features": {
"bootmagic": true,
"command": false,
"console": false,
"encoder": true,
"extrakey": true,
"mousekey": true,
"nkro": true

View File

@ -23,3 +23,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
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

View File

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