From 2dce308337cbf167cff60c5de8396e551c971330 Mon Sep 17 00:00:00 2001 From: TS Design Works <64564678+kthorpe88@users.noreply.github.com> Date: Sun, 18 May 2025 08:05:31 -0400 Subject: [PATCH] Refactor encoder settings and update rules.mk for encoder functionality. Remove unused encoder map configuration. --- keyboards/tssouthpaw/keyboard.json | 7 ++----- keyboards/tssouthpaw/keymaps/default/keymap.c | 2 -- keyboards/tssouthpaw/rules.mk | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/keyboards/tssouthpaw/keyboard.json b/keyboards/tssouthpaw/keyboard.json index 050f8d8c931..e6c2b73135a 100644 --- a/keyboards/tssouthpaw/keyboard.json +++ b/keyboards/tssouthpaw/keyboard.json @@ -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": { diff --git a/keyboards/tssouthpaw/keymaps/default/keymap.c b/keyboards/tssouthpaw/keymaps/default/keymap.c index 1e3bb86c825..6bf5c995967 100644 --- a/keyboards/tssouthpaw/keymaps/default/keymap.c +++ b/keyboards/tssouthpaw/keymaps/default/keymap.c @@ -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 , _______, _______, _______ ), }; - \ No newline at end of file diff --git a/keyboards/tssouthpaw/rules.mk b/keyboards/tssouthpaw/rules.mk index 3e5c0c3c1ef..716da52f309 100644 --- a/keyboards/tssouthpaw/rules.mk +++ b/keyboards/tssouthpaw/rules.mk @@ -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