diff options
author | Sắn <59417802+MaiTheSan@users.noreply.github.com> | 2023-10-13 14:53:12 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 01:53:12 -0600 |
commit | 62ff02a101d0f69214754d4edeb583dddf14dd20 (patch) | |
tree | 22bfeb0131ec9db408277394aff9581736a6fe6e /keyboards/sawnsprojects/okayu/stm32f072 | |
parent | 032b039d0bf96e4fea0b87e0d2f6cd0fb34b7298 (diff) |
[Keyboard] Add Okayu (#22077)
Co-authored-by: jack <0x6a73@protonmail.com>
Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/sawnsprojects/okayu/stm32f072')
4 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/sawnsprojects/okayu/stm32f072/config.h b/keyboards/sawnsprojects/okayu/stm32f072/config.h new file mode 100644 index 0000000000..c47f1928c8 --- /dev/null +++ b/keyboards/sawnsprojects/okayu/stm32f072/config.h @@ -0,0 +1,8 @@ +// Copyright 2023 MaiTheSan +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + +#define WS2812_SPI SPID1 +#define WS2812_SPI_MOSI_PAL_MODE 5 +#define WS2812_SPI_SCK_PIN B13 +#define WS2812_SPI_SCK_PAL_MODE 5
\ No newline at end of file diff --git a/keyboards/sawnsprojects/okayu/stm32f072/info.json b/keyboards/sawnsprojects/okayu/stm32f072/info.json new file mode 100644 index 0000000000..b5d728b1cd --- /dev/null +++ b/keyboards/sawnsprojects/okayu/stm32f072/info.json @@ -0,0 +1,4 @@ +{ + "processor": "STM32F072", + "bootloader": "stm32-dfu", +} diff --git a/keyboards/sawnsprojects/okayu/stm32f072/mcuconf.h b/keyboards/sawnsprojects/okayu/stm32f072/mcuconf.h new file mode 100644 index 0000000000..7cd72d9a86 --- /dev/null +++ b/keyboards/sawnsprojects/okayu/stm32f072/mcuconf.h @@ -0,0 +1,8 @@ +// Copyright 2023 MaiTheSan +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + +#include_next <mcuconf.h> + +#undef STM32_SPI_USE_SPI1 +#define STM32_SPI_USE_SPI1 TRUE diff --git a/keyboards/sawnsprojects/okayu/stm32f072/rules.mk b/keyboards/sawnsprojects/okayu/stm32f072/rules.mk new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/keyboards/sawnsprojects/okayu/stm32f072/rules.mk |