Refactor encoder settings and update rules.mk for encoder functionality. Remove unused encoder map configuration.

This commit is contained in:
TS Design Works 2025-05-18 08:05:31 -04:00
parent def95953e7
commit 2dce308337
3 changed files with 4 additions and 9 deletions

View File

@ -24,7 +24,6 @@
"pin": "GP27"
},
"encoder": {
"enabled": true,
"rotary": [
{"pin_a": "GP1", "pin_b": "GP0", "resolution": 4}
]
@ -35,10 +34,8 @@
"extrakey": true,
"nkro": true,
"rgb_matrix": true,
"dynamic_macro": true
},
"caps_word": {
"enabled": true
"dynamic_macro": true,
},
"debounce": 5,
"rgb_matrix": {

View File

@ -38,7 +38,6 @@
KC_10HR, // 10-hour timer
};
// Replace encoder update function with encoder map
#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
@ -168,4 +167,3 @@
KC_NO , _______, _______, _______, RGB_RMOD, RGB_HUD, RGB_MOD, KC_NO , _______, _______, KC_NO , KC_NO , KC_NO , KC_WRKPAU, KC_NO , KC_NO , _______, KC_NO , _______, _______, _______
),
};

View File

@ -1,5 +1,5 @@
# This is the rules.mk file for the RGB Effects firmware.
SRC += rgb_effects/rgb_effects.c rgb_effects/work_timer.c
# Enable encoder map functionality
ENCODER_MAP_ENABLE = yes
# Enable encoder functionality
ENCODER_ENABLE = yes