Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -220,18 +220,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# define MIDI_INITIAL_VELOCITY 117
|
||||
#endif // MIDI_ENABLE
|
||||
|
||||
/*
|
||||
* Encoder options
|
||||
*/
|
||||
#ifdef ENCODER_ENABLE
|
||||
# define ENCODERS_PAD_A { }
|
||||
# define ENCODERS_PAD_B { }
|
||||
# define ENCODER_RESOLUTIONS { }
|
||||
# define ENCODERS_PAD_A_RIGHT { B4 }
|
||||
# define ENCODERS_PAD_B_RIGHT { B6 }
|
||||
# define ENCODER_RESOLUTIONS_RIGHT { 4 }
|
||||
# define TAP_CODE_DELAY 10
|
||||
#endif // ENCODER_ENABLE
|
||||
#define TAP_CODE_DELAY 10
|
||||
|
||||
/* 2021/01/22 added to shrink firmware size */
|
||||
// NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
|
||||
|
@@ -8,8 +8,18 @@
|
||||
"pid": "0xF4B0",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": []
|
||||
},
|
||||
"split": {
|
||||
"soft_serial_pin": "D2"
|
||||
"soft_serial_pin": "D2",
|
||||
"encoder": {
|
||||
"right": {
|
||||
"rotary": [
|
||||
{"pin_a": "B4", "pin_b": "B6"}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
|
Reference in New Issue
Block a user