Skip to content

Commit

Permalink
[Keyboard] Add STM32f3 Discovery onekey (qmk#21625)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlK90 authored and thismarvin committed Sep 27, 2023
1 parent ac4143f commit 259f4c7
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 0 deletions.
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.

0 comments on commit 259f4c7

Please sign in to comment.