mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-27 11:31:13 +00:00
Refactor encoder settings and update rules.mk for encoder functionality. Remove unused encoder map configuration.
This commit is contained in:
parent
def95953e7
commit
2dce308337
@ -24,7 +24,6 @@
|
|||||||
"pin": "GP27"
|
"pin": "GP27"
|
||||||
},
|
},
|
||||||
"encoder": {
|
"encoder": {
|
||||||
"enabled": true,
|
|
||||||
"rotary": [
|
"rotary": [
|
||||||
{"pin_a": "GP1", "pin_b": "GP0", "resolution": 4}
|
{"pin_a": "GP1", "pin_b": "GP0", "resolution": 4}
|
||||||
]
|
]
|
||||||
@ -35,10 +34,8 @@
|
|||||||
"extrakey": true,
|
"extrakey": true,
|
||||||
"nkro": true,
|
"nkro": true,
|
||||||
"rgb_matrix": true,
|
"rgb_matrix": true,
|
||||||
"dynamic_macro": true
|
"dynamic_macro": true,
|
||||||
},
|
|
||||||
"caps_word": {
|
|
||||||
"enabled": true
|
|
||||||
},
|
},
|
||||||
"debounce": 5,
|
"debounce": 5,
|
||||||
"rgb_matrix": {
|
"rgb_matrix": {
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
KC_10HR, // 10-hour timer
|
KC_10HR, // 10-hour timer
|
||||||
};
|
};
|
||||||
|
|
||||||
// Replace encoder update function with encoder map
|
|
||||||
#ifdef ENCODER_MAP_ENABLE
|
#ifdef ENCODER_MAP_ENABLE
|
||||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||||
[BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
[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 , _______, _______, _______
|
KC_NO , _______, _______, _______, RGB_RMOD, RGB_HUD, RGB_MOD, KC_NO , _______, _______, KC_NO , KC_NO , KC_NO , KC_WRKPAU, KC_NO , KC_NO , _______, KC_NO , _______, _______, _______
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
# This is the rules.mk file for the RGB Effects firmware.
|
# This is the rules.mk file for the RGB Effects firmware.
|
||||||
SRC += rgb_effects/rgb_effects.c rgb_effects/work_timer.c
|
SRC += rgb_effects/rgb_effects.c rgb_effects/work_timer.c
|
||||||
|
|
||||||
# Enable encoder map functionality
|
# Enable encoder functionality
|
||||||
ENCODER_MAP_ENABLE = yes
|
ENCODER_ENABLE = yes
|
||||||
|
Loading…
Reference in New Issue
Block a user