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

@@ -38,10 +38,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define EE_HANDS
#define ENCODERS_PAD_A \
{ D5 }
#define ENCODERS_PAD_B \
{ C7 }
/* PMW33XX Settings */
#define PMW33XX_CS_PIN B6

View File

@@ -1,5 +1,10 @@
{
"keyboard_name": "Tractyl Manuform (5x6) Elite-C",
"encoder": {
"rotary": [
{"pin_a": "D5", "pin_b": "C7"}
]
},
"split": {
"soft_serial_pin": "D2"
},

View File

@@ -70,12 +70,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define I2C1_SDA_PAL_MODE 4
#define I2C1_CLOCK_SPEED 400000
/* encoder config */
#define ENCODERS_PAD_A \
{ A7 }
#define ENCODERS_PAD_B \
{ A8 }
/* spi config for eeprom and pmw3360 sensor */
#define SPI_DRIVER SPID2
#define SPI_SCK_PIN B13

View File

@@ -1,5 +1,10 @@
{
"keyboard_name": "Tractyl Manuform (5x6) Proton-C",
"encoder": {
"rotary": [
{"pin_a": "A7", "pin_b": "A8"}
]
},
"processor": "STM32F303",
"bootloader": "stm32-dfu"
}

View File

@@ -76,12 +76,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define I2C1_CLOCK_SPEED 400000
#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_16_9
/* encoder config */
#define ENCODERS_PAD_A \
{ A13 }
#define ENCODERS_PAD_B \
{ A14 }
/* spi config for eeprom and pmw3360 sensor */
#define SPI_DRIVER SPID1
#define SPI_SCK_PIN A5

View File

@@ -1,5 +1,10 @@
{
"keyboard_name": "Tractyl Manuform (5x6) BlackPill",
"encoder": {
"rotary": [
{"pin_a": "A13", "pin_b": "A14"}
]
},
"processor": "STM32F411",
"bootloader": "stm32-dfu",
"board": "BLACKPILL_STM32_F411"

View File

@@ -42,10 +42,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define EE_HANDS
#define ENCODERS_PAD_A \
{ D5 }
#define ENCODERS_PAD_B \
{ D4 }
/* PMW33XX Settings */
#define PMW33XX_CS_PIN B0

View File

@@ -1,5 +1,10 @@
{
"keyboard_name": "Tractyl Manuform (5x6) Teensy 2.0++",
"encoder": {
"rotary": [
{"pin_a": "D5", "pin_b": "D4"}
]
},
"split": {
"soft_serial_pin": "D2"
},