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

@@ -17,10 +17,6 @@
#pragma once
#define ENCODERS_PAD_A { B2 }
#define ENCODERS_PAD_B { B1 }
#define MATRIX_ROW_PINS { B3, F4, F7, F6, F5 }
#define MATRIX_COL_PINS { C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, D1, D0}

View File

@@ -8,6 +8,11 @@
"pid": "0x1225",
"device_version": "0.1.1"
},
"encoder": {
"rotary": [
{"pin_a": "B2", "pin_b": "B1"}
]
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -8,6 +8,11 @@
"pid": "0x1225",
"device_version": "0.1.1"
},
"encoder": {
"rotary": [
{"pin_a": "B2", "pin_b": "B1"}
]
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -5,9 +5,6 @@
#define MATRIX_ROW_PINS { C6, D4, D2, D3 }
#define MATRIX_COL_PINS { F6, F5, F4 }
#define ENCODERS_PAD_A { B3 }
#define ENCODERS_PAD_B { B2 }
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

View File

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

View File

@@ -16,10 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.#pragma once
*/
#define ENCODERS_PAD_A { B7 }
#define ENCODERS_PAD_B { D5 }
/* key matrix pins */
#define MATRIX_ROW_PINS { F4, F5, F6, F7, B1, F1, NO_PIN }
#define MATRIX_COL_PINS { F0, D1, D0, D4, C6, D7, E6, B4, B5, B3, B2, B6, D2, C7 }

View File

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

View File

@@ -14,10 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.#pragma once
*/
#define ENCODERS_PAD_A { D6 }
#define ENCODERS_PAD_B { D7 }
/* key matrix pins */
#define MATRIX_ROW_PINS { C7, C6 }
#define MATRIX_COL_PINS { F4, F1, F0, D5 }

View File

@@ -8,6 +8,11 @@
"pid": "0x0003",
"device_version": "0.0.4"
},
"encoder": {
"rotary": [
{"pin_a": "D6", "pin_b": "D7"}
]
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {