summaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/kb2040
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/kb2040
parentbad8c6718901603b8a64d371b003ae4ab6a24044 (diff)
Onekey: migrate some stuff to data driven (#18502)
Diffstat (limited to 'keyboards/handwired/onekey/kb2040')
-rw-r--r--keyboards/handwired/onekey/kb2040/config.h6
-rw-r--r--keyboards/handwired/onekey/kb2040/info.json10
-rw-r--r--keyboards/handwired/onekey/kb2040/rules.mk5
3 files changed, 9 insertions, 12 deletions
diff --git a/keyboards/handwired/onekey/kb2040/config.h b/keyboards/handwired/onekey/kb2040/config.h
index 0bf7adf37f..c6c6dbe2cf 100644
--- a/keyboards/handwired/onekey/kb2040/config.h
+++ b/keyboards/handwired/onekey/kb2040/config.h
@@ -5,10 +5,6 @@
#include "config_common.h"
-#define MATRIX_COL_PINS \
- { GP4 }
-#define MATRIX_ROW_PINS \
- { GP5 }
#define DEBUG_MATRIX_SCAN_RATE
#define QMK_WAITING_TEST_BUSY_PIN GP8
@@ -18,8 +14,6 @@
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP25
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
-#define RGB_DI_PIN A1
-
// settings for the oled keyboard demo with Adafruit 0.91" OLED display on the Stemma QT port
#define OLED_DISPLAY_128X32
#define I2C_DRIVER I2CD1
diff --git a/keyboards/handwired/onekey/kb2040/info.json b/keyboards/handwired/onekey/kb2040/info.json
index 696b772142..7982db4678 100644
--- a/keyboards/handwired/onekey/kb2040/info.json
+++ b/keyboards/handwired/onekey/kb2040/info.json
@@ -1,3 +1,11 @@
{
- "keyboard_name": "Onekey KB2040"
+ "keyboard_name": "Onekey KB2040",
+ "development_board": "kb2040",
+ "matrix_pins": {
+ "cols": ["GP4"],
+ "rows": ["GP5"]
+ },
+ "rgblight": {
+ "pin": "A1"
+ }
}
diff --git a/keyboards/handwired/onekey/kb2040/rules.mk b/keyboards/handwired/onekey/kb2040/rules.mk
index 624b331bf8..a5429ba993 100644
--- a/keyboards/handwired/onekey/kb2040/rules.mk
+++ b/keyboards/handwired/onekey/kb2040/rules.mk
@@ -1,9 +1,4 @@
-# MCU name
-MCU = RP2040
-BOOTLOADER = rp2040
-
OLED_ENABLE = yes
OLED_DRIVER = SSD1306
OPT_DEFS += -DHAL_USE_I2C=TRUE
-