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
69 changed files with 259 additions and 335 deletions

View File

@@ -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

View File

@@ -1,3 +1,11 @@
{
"keyboard_name": "Onekey KB2040"
"keyboard_name": "Onekey KB2040",
"development_board": "kb2040",
"matrix_pins": {
"cols": ["GP4"],
"rows": ["GP5"]
},
"rgblight": {
"pin": "A1"
}
}

View File

@@ -1,9 +1,4 @@
# MCU name
MCU = RP2040
BOOTLOADER = rp2040
OLED_ENABLE = yes
OLED_DRIVER = SSD1306
OPT_DEFS += -DHAL_USE_I2C=TRUE