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,15 +18,10 @@
#include "config_common.h"
#define MATRIX_COL_PINS { A2 }
#define MATRIX_ROW_PINS { A1 }
#define BACKLIGHT_PIN B8
#define BACKLIGHT_PWM_DRIVER PWMD4
#define BACKLIGHT_PWM_CHANNEL 3
#define BACKLIGHT_PAL_MODE 2
#define RGB_DI_PIN A0
#define RGB_CI_PIN B13
#define ADC_PIN A0

View file

@ -1,3 +1,14 @@
{
"keyboard_name": "Onekey Proton-C"
"keyboard_name": "Onekey Proton-C",
"development_board": "proton_c",
"matrix_pins": {
"cols": ["A2"],
"rows": ["A1"]
},
"backlight": {
"pin": "B8"
},
"rgblight": {
"pin": "A0"
}
}

View file

@ -1,6 +0,0 @@
# MCU name
MCU = STM32F303
BOARD = QMK_PROTON_C
# Bootloader selection
BOOTLOADER = stm32-dfu