summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/tractyl_manuform/5x6_right
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-26 09:45:12 +1100
committerGitHub <noreply@github.com>2023-02-26 09:45:12 +1100
commit7e0299117b389b1c7fcdfa2f20891ba2287ea771 (patch)
tree00bb5bb7b3b73a9de365d1839ba7d41240d439f1 /keyboards/handwired/tractyl_manuform/5x6_right
parent314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 (diff)
Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/handwired/tractyl_manuform/5x6_right')
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h5
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/elite_c/info.json5
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h6
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f303/info.json5
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h6
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f411/info.json5
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h5
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/info.json5
8 files changed, 20 insertions, 22 deletions
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h
index e4856c4eec..c52610e9d3 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/config.h
@@ -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
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/info.json b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/info.json
index 4fcfeed921..dabab602dd 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/info.json
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/elite_c/info.json
@@ -1,5 +1,10 @@
{
"keyboard_name": "Tractyl Manuform (5x6) Elite-C",
+ "encoder": {
+ "rotary": [
+ {"pin_a": "D5", "pin_b": "C7"}
+ ]
+ },
"split": {
"soft_serial_pin": "D2"
},
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h
index f3f3fb7e22..d10cb0bd8b 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h
@@ -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
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f303/info.json b/keyboards/handwired/tractyl_manuform/5x6_right/f303/info.json
index 3ad29d36b8..bed70941bf 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f303/info.json
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f303/info.json
@@ -1,5 +1,10 @@
{
"keyboard_name": "Tractyl Manuform (5x6) Proton-C",
+ "encoder": {
+ "rotary": [
+ {"pin_a": "A7", "pin_b": "A8"}
+ ]
+ },
"processor": "STM32F303",
"bootloader": "stm32-dfu"
}
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
index e93e70f569..227863aaa5 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
@@ -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
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/info.json b/keyboards/handwired/tractyl_manuform/5x6_right/f411/info.json
index 9b81dc18eb..0791e50ebf 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/info.json
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/info.json
@@ -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"
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
index cae5b7fc14..51ff0d3123 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/config.h
@@ -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
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/info.json b/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/info.json
index a7fb36c71e..7f60ae0edc 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/info.json
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/teensy2pp/info.json
@@ -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"
},