diff options
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/handwired/onekey/at_start_f415/board.h | 10 | ||||
-rw-r--r-- | keyboards/handwired/onekey/at_start_f415/config.h | 10 | ||||
-rw-r--r-- | keyboards/handwired/onekey/at_start_f415/halconf.h | 13 | ||||
-rw-r--r-- | keyboards/handwired/onekey/at_start_f415/keyboard.json | 20 | ||||
-rw-r--r-- | keyboards/handwired/onekey/at_start_f415/mcuconf.h | 16 | ||||
-rw-r--r-- | keyboards/handwired/onekey/at_start_f415/readme.md | 3 |
6 files changed, 72 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/at_start_f415/board.h b/keyboards/handwired/onekey/at_start_f415/board.h new file mode 100644 index 0000000000..f4adc2d418 --- /dev/null +++ b/keyboards/handwired/onekey/at_start_f415/board.h @@ -0,0 +1,10 @@ +// Copyright 2023-2024 HorrorTroll <https://github.com/HorrorTroll> +// Copyright 2023-2024 Zhaqian <https://github.com/zhaqian12> +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include_next <board.h> + +#undef AT32F415KB +#define AT32F415RC diff --git a/keyboards/handwired/onekey/at_start_f415/config.h b/keyboards/handwired/onekey/at_start_f415/config.h new file mode 100644 index 0000000000..266e45dd00 --- /dev/null +++ b/keyboards/handwired/onekey/at_start_f415/config.h @@ -0,0 +1,10 @@ +// Copyright 2023-2024 HorrorTroll <https://github.com/HorrorTroll> +// Copyright 2023-2024 Zhaqian <https://github.com/zhaqian12> +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#define ADC_PIN A0 + +#define BACKLIGHT_PWM_DRIVER PWMD5 +#define BACKLIGHT_PWM_CHANNEL 1 diff --git a/keyboards/handwired/onekey/at_start_f415/halconf.h b/keyboards/handwired/onekey/at_start_f415/halconf.h new file mode 100644 index 0000000000..1423633d15 --- /dev/null +++ b/keyboards/handwired/onekey/at_start_f415/halconf.h @@ -0,0 +1,13 @@ +// Copyright 2023-2024 HorrorTroll <https://github.com/HorrorTroll> +// Copyright 2023-2024 Zhaqian <https://github.com/zhaqian12> +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#define HAL_USE_ADC TRUE + +#define HAL_USE_I2C TRUE + +#define HAL_USE_PWM 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 new file mode 100644 index 0000000000..f598923a6a --- /dev/null +++ b/keyboards/handwired/onekey/at_start_f415/keyboard.json @@ -0,0 +1,20 @@ +{ + "keyboard_name": "Onekey AT-START-F415", + "processor": "AT32F415", + "bootloader": "at32-dfu", + "usb": { + "shared_endpoint": { + "keyboard": true + } + }, + "matrix_pins": { + "cols": ["B3"], + "rows": ["B4"] + }, + "backlight": { + "pin": "A0" + }, + "ws2812": { + "pin": "B0" + } +} diff --git a/keyboards/handwired/onekey/at_start_f415/mcuconf.h b/keyboards/handwired/onekey/at_start_f415/mcuconf.h new file mode 100644 index 0000000000..9bc11d507c --- /dev/null +++ b/keyboards/handwired/onekey/at_start_f415/mcuconf.h @@ -0,0 +1,16 @@ +// Copyright 2023-2024 HorrorTroll <https://github.com/HorrorTroll> +// Copyright 2023-2024 Zhaqian <https://github.com/zhaqian12> +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include_next <mcuconf.h> + +#undef AT32_ADC_USE_ADC1 +#define AT32_ADC_USE_ADC1 TRUE + +#undef AT32_I2C_USE_I2C1 +#define AT32_I2C_USE_I2C1 TRUE + +#undef AT32_PWM_USE_TMR5 +#define AT32_PWM_USE_TMR5 TRUE diff --git a/keyboards/handwired/onekey/at_start_f415/readme.md b/keyboards/handwired/onekey/at_start_f415/readme.md new file mode 100644 index 0000000000..499ef5fb16 --- /dev/null +++ b/keyboards/handwired/onekey/at_start_f415/readme.md @@ -0,0 +1,3 @@ +# Artery AT-START-F415 Board Onekey + +To trigger keypress, short together pins *B3* and *B4*. |