Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -23,10 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_COL_PINS { D4, D0, D1, C6, D7, E6, F4, B2, B6 }
|
||||
#define MATRIX_ROW_PINS_RIGHT { D7, E6, B4, B5, B6 }
|
||||
#define MATRIX_COL_PINS_RIGHT { C6, D4, D0, D1, B1, F7, F4, F5, F6 }
|
||||
#define ENCODERS_PAD_A { B5 }
|
||||
#define ENCODERS_PAD_B { B4 }
|
||||
#define ENCODERS_PAD_A_RIGHT { B3 }
|
||||
#define ENCODERS_PAD_B_RIGHT { B2 }
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
@@ -53,5 +49,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#define ENCODER_RESOLUTION 4
|
||||
#endif
|
||||
|
@@ -8,8 +8,20 @@
|
||||
"pid": "0x6060",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "B5", "pin_b": "B4"}
|
||||
]
|
||||
},
|
||||
"split": {
|
||||
"soft_serial_pin": "D2"
|
||||
"soft_serial_pin": "D2",
|
||||
"encoder": {
|
||||
"right": {
|
||||
"rotary": [
|
||||
{"pin_a": "B3", "pin_b": "B2"}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
|
Reference in New Issue
Block a user