Skip to content

Commit

Permalink
Added AT-START-F415 onekey
Browse files Browse the repository at this point in the history
  • Loading branch information
HorrorTroll committed Apr 9, 2024
1 parent fd41f87 commit 308af3e
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 0 deletions.
10 changes: 10 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/board.h
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// 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
11 changes: 11 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 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

#include_next <halconf.h>
12 changes: 12 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"keyboard_name": "Onekey AT-START-F415",
"processor": "AT32F415",
"bootloader": "at32-dfu",
"matrix_pins": {
"cols": ["B3"],
"rows": ["B4"]
},
"ws2812": {
"pin": "B0"
}
}
13 changes: 13 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/mcuconf.h
Original file line number Diff line number Diff line change
@@ -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

#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
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Artery AT-START-F415 Board Onekey

To trigger keypress, short together pins *B3* and *B4*.
1 change: 1 addition & 0 deletions keyboards/handwired/onekey/at_start_f415/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
KEYBOARD_SHARED_EP = yes

0 comments on commit 308af3e

Please sign in to comment.