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/info.json | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'keyboards/chromatonemini/info.json') diff --git a/keyboards/chromatonemini/info.json b/keyboards/chromatonemini/info.json index 5f77db05ee..7d33f4ed20 100644 --- a/keyboards/chromatonemini/info.json +++ b/keyboards/chromatonemini/info.json @@ -3,6 +3,26 @@ "manufacturer": "3araht", "url": "https://github.com/3araht/chromatonemini", "maintainer": "3araht", + "bootloader": "caterina", + "processor": "atmega32u4", + "features": { + "midi": true, + "extrakey": true, + "encoder": true, + "via": true, + "bootmagic": false, + "console": false, + "mousekey": false, + "nkro": false, + "rgblight": false, + "audio": false + }, + "diode_direction": "COL2ROW", + "matrix_pins": { + "cols": [ "F4", "F5", "F6", "F7", "B1", "B3", "B2", "B6" ], + "rows": [ "E6", "D7", "C6", "D4", "D0", "D1" ] + }, + "debounce": 5, "usb": { "vid": "0xFEED", "pid": "0xF4B4", @@ -13,8 +33,6 @@ "layout": [ {"label":"enc", "x":0.5, "y":0}, {"label":"sustain", "x":1.5, "y":0}, - {"label":"ccw", "x":2.5, "y":0}, - {"label":"cw", "x":3.5, "y":0}, {"label":"up", "x":0.5, "y":1.5}, {"label":"left", "x":0, "y":2.5}, {"label":"right", "x":1, "y":2.5}, @@ -57,5 +75,10 @@ {"label":"k34", "x":19, "y":3.5}, {"label":"k36", "x":20, "y":3.5}] } + }, + "encoder": { + "rotary": [ + { "pin_a": "B5", "pin_b": "B4", "resolution": 4 } + ] } } -- cgit v1.2.3