1
0
Fork 0

Onekey: migrate some stuff to data driven (#18502)

This commit is contained in:
Ryan 2022-09-30 04:23:11 +10:00 committed by GitHub
parent bad8c67189
commit 45b5ed5c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 259 additions and 335 deletions

View file

@ -18,14 +18,10 @@
#include "config_common.h"
#define MATRIX_COL_PINS { B4 }
#define MATRIX_ROW_PINS { B5 }
#define BACKLIGHT_PIN C8
#define BACKLIGHT_PWM_DRIVER PWMD3
#define BACKLIGHT_PWM_CHANNEL 3
#define BACKLIGHT_PAL_MODE 0
#define RGB_DI_PIN B15
#define ADC_PIN A0
#define RGB_CI_PIN B13

View file

@ -1,3 +1,15 @@
{
"keyboard_name": "Onekey STM32F072 Discovery"
"keyboard_name": "Onekey STM32F072 Discovery",
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"matrix_pins": {
"cols": ["B4"],
"rows": ["B5"]
},
"backlight": {
"pin": "C8"
},
"rgblight": {
"pin": "B15"
}
}

View file

@ -1,8 +1,2 @@
# MCU name
MCU = STM32F072
# Bootloader selection
BOOTLOADER = stm32-dfu
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE