Onekey: migrate some stuff to data driven (#18502)
This commit is contained in:
parent
bad8c67189
commit
45b5ed5c6e
69 changed files with 259 additions and 335 deletions
|
@ -18,13 +18,9 @@
|
|||
|
||||
#include "config_common.h"
|
||||
|
||||
#define MATRIX_COL_PINS { B0 }
|
||||
#define MATRIX_ROW_PINS { A7 }
|
||||
|
||||
#define BACKLIGHT_PIN A0
|
||||
#define BACKLIGHT_PWM_DRIVER PWMD5
|
||||
#define BACKLIGHT_PWM_CHANNEL 1
|
||||
|
||||
#define RGB_DI_PIN A1
|
||||
|
||||
#define ADC_PIN A0
|
||||
|
||||
#define RGB_CI_PIN A2
|
||||
|
|
|
@ -1,3 +1,16 @@
|
|||
{
|
||||
"keyboard_name": "Onekey Blackpill STM32F411 TinyUF2"
|
||||
"keyboard_name": "Onekey Blackpill STM32F411 TinyUF2",
|
||||
"processor": "STM32F411",
|
||||
"bootloader": "tinyuf2",
|
||||
"board": "BLACKPILL_STM32_F411",
|
||||
"matrix_pins": {
|
||||
"cols": ["B0"],
|
||||
"rows": ["A7"]
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "A0"
|
||||
},
|
||||
"rgblight": {
|
||||
"pin": "A1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1 @@
|
|||
# MCU name
|
||||
MCU = STM32F411
|
||||
BOARD = BLACKPILL_STM32_F411
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = tinyuf2
|
||||
|
||||
KEYBOARD_SHARED_EP = yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue