aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/at_start_f415
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/onekey/at_start_f415')
-rw-r--r--keyboards/handwired/onekey/at_start_f415/config.h14
-rw-r--r--keyboards/handwired/onekey/at_start_f415/halconf.h2
-rw-r--r--keyboards/handwired/onekey/at_start_f415/keyboard.json2
-rw-r--r--keyboards/handwired/onekey/at_start_f415/mcuconf.h3
4 files changed, 20 insertions, 1 deletions
diff --git a/keyboards/handwired/onekey/at_start_f415/config.h b/keyboards/handwired/onekey/at_start_f415/config.h
index 41aece900c..7e41e7da89 100644
--- a/keyboards/handwired/onekey/at_start_f415/config.h
+++ b/keyboards/handwired/onekey/at_start_f415/config.h
@@ -4,11 +4,25 @@
#pragma once
+/* ADC pin */
#define ADC_PIN A0
+/* Backlight configs */
#define BACKLIGHT_PWM_DRIVER PWMD5
#define BACKLIGHT_PWM_CHANNEL 1
+/* LCD configs */
+#define LCD_RST_PIN A2
+#define LCD_DC_PIN A3
+#define LCD_CS_PIN A4
+
+/* SPI pins */
+#define SPI_DRIVER SPID1
+#define SPI_SCK_PIN A5
+#define SPI_MOSI_PIN A7
+#define SPI_MISO_PIN A6
+
+/* Haptic configs */
#define SOLENOID_PIN B12
#define SOLENOID_PINS { B12, B13, B14, B15 }
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
diff --git a/keyboards/handwired/onekey/at_start_f415/halconf.h b/keyboards/handwired/onekey/at_start_f415/halconf.h
index e3c075936d..3c3ba3812a 100644
--- a/keyboards/handwired/onekey/at_start_f415/halconf.h
+++ b/keyboards/handwired/onekey/at_start_f415/halconf.h
@@ -10,4 +10,6 @@
#define HAL_USE_PWM TRUE
+#define HAL_USE_SPI TRUE
+
#include_next <halconf.h>
diff --git a/keyboards/handwired/onekey/at_start_f415/keyboard.json b/keyboards/handwired/onekey/at_start_f415/keyboard.json
index 6e5683a474..8024e776a8 100644
--- a/keyboards/handwired/onekey/at_start_f415/keyboard.json
+++ b/keyboards/handwired/onekey/at_start_f415/keyboard.json
@@ -16,7 +16,7 @@
},
"ws2812": {
"pin": "B0"
- }
+ },
"apa102": {
"data_pin": "B0",
"clock_pin": "B1"
diff --git a/keyboards/handwired/onekey/at_start_f415/mcuconf.h b/keyboards/handwired/onekey/at_start_f415/mcuconf.h
index 246f6762d3..8f6333ca01 100644
--- a/keyboards/handwired/onekey/at_start_f415/mcuconf.h
+++ b/keyboards/handwired/onekey/at_start_f415/mcuconf.h
@@ -14,3 +14,6 @@
#undef AT32_PWM_USE_TMR5
#define AT32_PWM_USE_TMR5 TRUE
+
+#undef AT32_SPI_USE_SPI1
+#define AT32_SPI_USE_SPI1 TRUE