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
  • Loading branch information
Trex4Git committed Mar 25, 2023
1 parent a86d3df commit 697a37a
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 @@ -8,6 +8,20 @@
"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",
"layouts": {
Expand Down

0 comments on commit 697a37a

Please sign in to comment.