Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Add STM32f3 Discovery onekey #21625

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions keyboards/handwired/onekey/stm32f3_disco/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2023 Stefan Kerkmann
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define ADC_PIN A0
8 changes: 8 additions & 0 deletions keyboards/handwired/onekey/stm32f3_disco/halconf.h
Original file line number Diff line number Diff line change
@@ -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 changes: 19 additions & 0 deletions keyboards/handwired/onekey/stm32f3_disco/info.json
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions keyboards/handwired/onekey/stm32f3_disco/mcuconf.h
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions keyboards/handwired/onekey/stm32f3_disco/readme.md
Original file line number Diff line number Diff line change
@@ -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*.
Empty file.