diff options
Diffstat (limited to 'keyboards/handwired/onekey/at_start_f415')
5 files changed, 31 insertions, 8 deletions
diff --git a/keyboards/handwired/onekey/at_start_f415/board.h b/keyboards/handwired/onekey/at_start_f415/board.h index f4adc2d418..a31d8f8e37 100644 --- a/keyboards/handwired/onekey/at_start_f415/board.h +++ b/keyboards/handwired/onekey/at_start_f415/board.h @@ -1,5 +1,5 @@ -// Copyright 2023-2024 HorrorTroll <https://github.com/HorrorTroll> -// Copyright 2023-2024 Zhaqian <https://github.com/zhaqian12> +// Copyright 2023-2025 HorrorTroll <https://github.com/HorrorTroll> +// Copyright 2023-2025 Zhaqian <https://github.com/zhaqian12> // SPDX-License-Identifier: GPL-2.0-or-later #pragma once diff --git a/keyboards/handwired/onekey/at_start_f415/config.h b/keyboards/handwired/onekey/at_start_f415/config.h index 0e47e813c5..7e41e7da89 100644 --- a/keyboards/handwired/onekey/at_start_f415/config.h +++ b/keyboards/handwired/onekey/at_start_f415/config.h @@ -1,14 +1,28 @@ -// Copyright 2023-2024 HorrorTroll <https://github.com/HorrorTroll> -// Copyright 2023-2024 Zhaqian <https://github.com/zhaqian12> +// Copyright 2023-2025 HorrorTroll <https://github.com/HorrorTroll> +// Copyright 2023-2025 Zhaqian <https://github.com/zhaqian12> // SPDX-License-Identifier: GPL-2.0-or-later #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 1423633d15..3c3ba3812a 100644 --- a/keyboards/handwired/onekey/at_start_f415/halconf.h +++ b/keyboards/handwired/onekey/at_start_f415/halconf.h @@ -1,5 +1,5 @@ -// Copyright 2023-2024 HorrorTroll <https://github.com/HorrorTroll> -// Copyright 2023-2024 Zhaqian <https://github.com/zhaqian12> +// Copyright 2023-2025 HorrorTroll <https://github.com/HorrorTroll> +// Copyright 2023-2025 Zhaqian <https://github.com/zhaqian12> // SPDX-License-Identifier: GPL-2.0-or-later #pragma once @@ -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 f598923a6a..8024e776a8 100644 --- a/keyboards/handwired/onekey/at_start_f415/keyboard.json +++ b/keyboards/handwired/onekey/at_start_f415/keyboard.json @@ -16,5 +16,9 @@ }, "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 9bc11d507c..8f6333ca01 100644 --- a/keyboards/handwired/onekey/at_start_f415/mcuconf.h +++ b/keyboards/handwired/onekey/at_start_f415/mcuconf.h @@ -1,5 +1,5 @@ -// Copyright 2023-2024 HorrorTroll <https://github.com/HorrorTroll> -// Copyright 2023-2024 Zhaqian <https://github.com/zhaqian12> +// Copyright 2023-2025 HorrorTroll <https://github.com/HorrorTroll> +// Copyright 2023-2025 Zhaqian <https://github.com/zhaqian12> // SPDX-License-Identifier: GPL-2.0-or-later #pragma once @@ -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 |