Move encoder config to data driven (#19923)

Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
Ryan
2023-02-26 09:45:12 +11:00
committed by GitHub
parent 314f6c1ddb
commit 7e0299117b
972 changed files with 2898 additions and 2569 deletions

View File

@@ -77,8 +77,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
#define OLED_FONT_H "./lib/glcdfont.c"
#define ENCODERS_PAD_A { B4, B5 }
#define ENCODERS_PAD_B { B2, B6 }
#define ENCODER_RESOLUTION 4

View File

@@ -8,6 +8,12 @@
"pid": "0x6C70",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "B4", "pin_b": "B2"},
{"pin_a": "B5", "pin_b": "B6"}
]
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {

View File

@@ -84,9 +84,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/
#define OLED_FONT_H "./lib/glcdfont.c"
#define ENCODERS_PAD_A { C7 }
#define ENCODERS_PAD_B { F7 }
#define ENCODER_RESOLUTION 4
#define VIA_HAS_BROKEN_KEYCODES

View File

@@ -8,6 +8,11 @@
"pid": "0x7C98",
"device_version": "0.0.1"
},
"encoder": {
"rotary": [
{"pin_a": "C7", "pin_b": "F7"}
]
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {