From 80558cea42d55e449ed76ea87a2c0ecc1c01ef4d Mon Sep 17 00:00:00 2001 From: Ex3c4Def Date: Fri, 7 Apr 2023 11:22:37 +0200 Subject: [PATCH] Move encoder config to data driven based on qmk#19923 Update config.h Update info.json Signed-off-by: Ex3c4Def --- keyboards/keycapsss/kimiko/rev2/config.h | 7 ------- keyboards/keycapsss/kimiko/rev2/info.json | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/keyboards/keycapsss/kimiko/rev2/config.h b/keyboards/keycapsss/kimiko/rev2/config.h index 16104442c6e0..e0190878dc95 100644 --- a/keyboards/keycapsss/kimiko/rev2/config.h +++ b/keyboards/keycapsss/kimiko/rev2/config.h @@ -47,13 +47,6 @@ #define RGBLIGHT_LIMIT_VAL 80 #endif -#ifdef ENCODER_ENABLE -# define ENCODERS_PAD_A { F4 } -# define ENCODERS_PAD_B { F5 } -# define ENCODERS_PAD_A_RIGHT { F4 } -# define ENCODERS_PAD_B_RIGHT { F5 } -#endif - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE /* Locking resynchronize hack */ diff --git a/keyboards/keycapsss/kimiko/rev2/info.json b/keyboards/keycapsss/kimiko/rev2/info.json index 7032547b45b5..a46daa9e351f 100644 --- a/keyboards/keycapsss/kimiko/rev2/info.json +++ b/keyboards/keycapsss/kimiko/rev2/info.json @@ -7,6 +7,20 @@ "vid": "0x7983", "pid": "0x4B69", "device_version": "2.0.0" + }, + "encoder": { + "rotary": [ + {"pin_a": "F4", "pin_b": "F5"} + ] + }, + "split": { + "encoder": { + "right": { + "rotary": [ + {"pin_a": "F4", "pin_b": "F5"} + ] + } + } }, "processor": "atmega32u4", "bootloader": "atmel-dfu",