mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-26 19:18:03 +06:00
[Keyboard] Add STM32f3 Discovery onekey (#21625)
This commit is contained in:
parent
96789a7cb0
commit
fca71f8d31
6
keyboards/handwired/onekey/stm32f3_disco/config.h
Normal file
6
keyboards/handwired/onekey/stm32f3_disco/config.h
Normal file
@ -0,0 +1,6 @@
|
||||
// Copyright 2023 Stefan Kerkmann
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define ADC_PIN A0
|
8
keyboards/handwired/onekey/stm32f3_disco/halconf.h
Normal file
8
keyboards/handwired/onekey/stm32f3_disco/halconf.h
Normal file
@ -0,0 +1,8 @@
|
||||
// Copyright 2023 Stefan Kerkmann
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_ADC TRUE
|
||||
|
||||
#include_next <halconf.h>
|
19
keyboards/handwired/onekey/stm32f3_disco/info.json
Normal file
19
keyboards/handwired/onekey/stm32f3_disco/info.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"keyboard_name": "Onekey STM32F3 Discovery",
|
||||
"processor": "STM32F303",
|
||||
"bootloader": "stm32-dfu",
|
||||
"matrix_pins": {
|
||||
"cols": ["B4"],
|
||||
"rows": ["B5"]
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "E8"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "A0"
|
||||
},
|
||||
"apa102": {
|
||||
"data_pin": "A0",
|
||||
"clock_pin": "B13"
|
||||
}
|
||||
}
|
9
keyboards/handwired/onekey/stm32f3_disco/mcuconf.h
Normal file
9
keyboards/handwired/onekey/stm32f3_disco/mcuconf.h
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright 2023 Stefan Kerkmann
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
#undef STM32_ADC_USE_ADC1
|
||||
#define STM32_ADC_USE_ADC1 TRUE
|
5
keyboards/handwired/onekey/stm32f3_disco/readme.md
Normal file
5
keyboards/handwired/onekey/stm32f3_disco/readme.md
Normal file
@ -0,0 +1,5 @@
|
||||
# STM32F303 Discovery kit onekey
|
||||
|
||||
* Supported Hardware: [STM32F303 Discovery](https://www.st.com/en/evaluation-tools/stm32f3discovery.html)
|
||||
|
||||
To trigger keypress, short together pins *B4* and *B5*.
|
0
keyboards/handwired/onekey/stm32f3_disco/rules.mk
Normal file
0
keyboards/handwired/onekey/stm32f3_disco/rules.mk
Normal file
Loading…
Reference in New Issue
Block a user