From 10005e9f39409986493dc3865cc64734c9db786e Mon Sep 17 00:00:00 2001 From: 3araht <69518343+3araht@users.noreply.github.com> Date: Fri, 30 Sep 2022 15:13:21 +0900 Subject: Rotary encoder setting is revised to solve a malfunction. (#18227) * Rotary encoder setting is revised to solve a mulfunction. UNUSED_PINS deleted. * Encoder map applied. * ENCODER_MAP_ENABLE moved to keymap level. * Settings in rules.mk moved to info.json. * picture sent to imgur. config.h streamlined. --- keyboards/chromatonemini/chromatonemini.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'keyboards/chromatonemini/chromatonemini.h') diff --git a/keyboards/chromatonemini/chromatonemini.h b/keyboards/chromatonemini/chromatonemini.h index 83838be73e..d42ee500ce 100644 --- a/keyboards/chromatonemini/chromatonemini.h +++ b/keyboards/chromatonemini/chromatonemini.h @@ -27,14 +27,14 @@ * represents the switch matrix. */ #define LAYOUT( \ - enc, sustain, ccw, cw, \ + enc, sustain, \ up, \ left, right, k01, k03, k05, k07, k09, k11, k13, k15, k17, k19, k21, k23, k25, k27, k29, k31, k33, k35, k37, \ down, k02, k04, k06, k08, k10, k12, k14, k16, k18, k20, k22, k24, k26, k28, k30, k32, k34, k36 \ ) { \ { enc, down, left, right, up, k01, k02, sustain }, \ - { k03, k04, k05, k06, k07, k08, k09, ccw }, \ - { k10, k11, k12, k13, k14, k15, k16, cw }, \ + { k03, k04, k05, k06, k07, k08, k09, KC_NO }, \ + { k10, k11, k12, k13, k14, k15, k16, KC_NO }, \ { k17, k18, k19, k20, k21, k22, k23, KC_NO }, \ { k24, k25, k26, k27, k28, k29, k30, KC_NO }, \ { k31, k32, k33, k34, k35, k36, k37, KC_NO } \ @@ -117,6 +117,3 @@ extern MidiDevice midi_device; uint8_t shift_led_indicator_left(uint8_t scale_indicator_col); uint8_t shift_led_indicator_right(uint8_t scale_indicator_col); -void encoder_action_unregister(void); - -void encoder_action_register(uint8_t index, bool clockwise); -- cgit v1.2.3