summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/onekey/proton_c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-09-30 04:23:11 +1000
committerGitHub <noreply@github.com>2022-09-30 04:23:11 +1000
commit45b5ed5c6e1ecdf95e9ce0523a8ff49d45b8822f (patch)
tree081caca5fb2e86ba1af0550a35e6743235cb6922 /keyboards/handwired/onekey/proton_c
parentbad8c6718901603b8a64d371b003ae4ab6a24044 (diff)
Onekey: migrate some stuff to data driven (#18502)
Diffstat (limited to 'keyboards/handwired/onekey/proton_c')
-rw-r--r--keyboards/handwired/onekey/proton_c/config.h5
-rw-r--r--keyboards/handwired/onekey/proton_c/info.json13
-rw-r--r--keyboards/handwired/onekey/proton_c/rules.mk6
3 files changed, 12 insertions, 12 deletions
diff --git a/keyboards/handwired/onekey/proton_c/config.h b/keyboards/handwired/onekey/proton_c/config.h
index 6e8e28edb4..776c422398 100644
--- a/keyboards/handwired/onekey/proton_c/config.h
+++ b/keyboards/handwired/onekey/proton_c/config.h
@@ -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
diff --git a/keyboards/handwired/onekey/proton_c/info.json b/keyboards/handwired/onekey/proton_c/info.json
index 47ac089f7a..5292d02567 100644
--- a/keyboards/handwired/onekey/proton_c/info.json
+++ b/keyboards/handwired/onekey/proton_c/info.json
@@ -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"
+ }
}
diff --git a/keyboards/handwired/onekey/proton_c/rules.mk b/keyboards/handwired/onekey/proton_c/rules.mk
index 7a846816d1..e69de29bb2 100644
--- a/keyboards/handwired/onekey/proton_c/rules.mk
+++ b/keyboards/handwired/onekey/proton_c/rules.mk
@@ -1,6 +0,0 @@
-# MCU name
-MCU = STM32F303
-BOARD = QMK_PROTON_C
-
-# Bootloader selection
-BOOTLOADER = stm32-dfu