summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/tractyl_manuform/5x6_right/f303
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/f303
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/f303')
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h6
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f303/info.json5
2 files changed, 5 insertions, 6 deletions
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"
}