diff options
author | Ryan <fauxpark@gmail.com> | 2022-09-30 04:23:11 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 04:23:11 +1000 |
commit | 45b5ed5c6e1ecdf95e9ce0523a8ff49d45b8822f (patch) | |
tree | 081caca5fb2e86ba1af0550a35e6743235cb6922 /keyboards/handwired/onekey/nucleo_l432kc | |
parent | bad8c6718901603b8a64d371b003ae4ab6a24044 (diff) |
Onekey: migrate some stuff to data driven (#18502)
Diffstat (limited to 'keyboards/handwired/onekey/nucleo_l432kc')
-rw-r--r-- | keyboards/handwired/onekey/nucleo_l432kc/config.h | 5 | ||||
-rw-r--r-- | keyboards/handwired/onekey/nucleo_l432kc/info.json | 14 | ||||
-rw-r--r-- | keyboards/handwired/onekey/nucleo_l432kc/rules.mk | 5 |
3 files changed, 13 insertions, 11 deletions
diff --git a/keyboards/handwired/onekey/nucleo_l432kc/config.h b/keyboards/handwired/onekey/nucleo_l432kc/config.h index b6b36c4cee..24b136fe2a 100644 --- a/keyboards/handwired/onekey/nucleo_l432kc/config.h +++ b/keyboards/handwired/onekey/nucleo_l432kc/config.h @@ -4,15 +4,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 diff --git a/keyboards/handwired/onekey/nucleo_l432kc/info.json b/keyboards/handwired/onekey/nucleo_l432kc/info.json index 3f497fc80a..a6e6511040 100644 --- a/keyboards/handwired/onekey/nucleo_l432kc/info.json +++ b/keyboards/handwired/onekey/nucleo_l432kc/info.json @@ -1,3 +1,15 @@ { - "keyboard_name": "Onekey Nucleo L432KC" + "keyboard_name": "Onekey Nucleo L432KC", + "processor": "STM32L432", + "bootloader": "stm32-dfu", + "matrix_pins": { + "cols": ["A2"], + "rows": ["A1"] + }, + "backlight": { + "pin": "B8" + }, + "rgblight": { + "pin": "A0" + } } diff --git a/keyboards/handwired/onekey/nucleo_l432kc/rules.mk b/keyboards/handwired/onekey/nucleo_l432kc/rules.mk index 64dae7746e..e69de29bb2 100644 --- a/keyboards/handwired/onekey/nucleo_l432kc/rules.mk +++ b/keyboards/handwired/onekey/nucleo_l432kc/rules.mk @@ -1,5 +0,0 @@ -# MCU name -MCU = STM32L432 - -# Bootloader selection -BOOTLOADER = stm32-dfu |