Skip to content

Commit

Permalink
Update onekey board
Browse files Browse the repository at this point in the history
  • Loading branch information
HorrorTroll committed Aug 7, 2024
1 parent 75a646c commit a5b7040
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
#pragma once

#define ADC_PIN A0

#define BACKLIGHT_PWM_DRIVER PWMD5
#define BACKLIGHT_PWM_CHANNEL 1
2 changes: 2 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@

#define HAL_USE_I2C TRUE

#define HAL_USE_PWM TRUE

#include_next <halconf.h>
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
"keyboard_name": "Onekey AT-START-F415",
"processor": "AT32F415",
"bootloader": "at32-dfu",
"usb": {
"shared_endpoint": {
"keyboard": true
}
},
"matrix_pins": {
"cols": ["B3"],
"rows": ["B4"]
},
"backlight": {
"pin": "A0"
},
"ws2812": {
"pin": "B0"
}
Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/at_start_f415/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@

#undef AT32_I2C_USE_I2C1
#define AT32_I2C_USE_I2C1 TRUE

#undef AT32_PWM_USE_TMR5
#define AT32_PWM_USE_TMR5 TRUE
1 change: 0 additions & 1 deletion keyboards/handwired/onekey/at_start_f415/rules.mk

This file was deleted.

0 comments on commit a5b7040

Please sign in to comment.