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

@@ -2,20 +2,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
// Encoders -- right-side is reversed
#define ENCODERS_PAD_A \
{ C14 }
#define ENCODERS_PAD_B \
{ C15 }
#define ENCODERS_PAD_A_RIGHT \
{ C15 }
#define ENCODERS_PAD_B_RIGHT \
{ C14 }
#ifndef ENCODER_RESOLUTION
# define ENCODER_RESOLUTION 2
#endif // ENCODER_RESOLUTION
// Bootloader
#define STM32_BOOTLOADER_DUAL_BANK TRUE
#define STM32_BOOTLOADER_DUAL_BANK_GPIO B7

View File

@@ -35,7 +35,19 @@
},
"split": {
"enabled": true,
"main": "pin"
"main": "pin",
"encoder": {
"right": {
"rotary": [
{"pin_a": "C15", "pin_b": "C14", "resolution": 2}
]
}
}
},
"encoder": {
"rotary": [
{"pin_a": "C14", "pin_b": "C15", "resolution": 2}
]
},
"layouts": {
"LAYOUT_all": {