Skip to content

Commit

Permalink
Move encoder config to data driven based on qmk#19923
Browse files Browse the repository at this point in the history
Update config.h
Update info.json

Signed-off-by: Ex3c4Def <[email protected]>
  • Loading branch information
Ex3c4Def committed Apr 7, 2023
1 parent 67ba061 commit 80558ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 0 additions & 7 deletions keyboards/keycapsss/kimiko/rev2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
14 changes: 14 additions & 0 deletions keyboards/keycapsss/kimiko/rev2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 80558ce

Please sign in to comment.