From cf41c24db853f825150802d30dce73ba507b69c0 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 25 Aug 2022 00:28:38 +1000 Subject: Move keyboard USB IDs and strings to data driven: develop (#18152) * Move keyboard USB IDs and strings to data driven: develop * Also do new onekeys --- keyboards/handwired/onekey/bluepill_f103c6/config.h | 2 -- keyboards/handwired/onekey/bluepill_f103c6/info.json | 3 +++ keyboards/handwired/onekey/kb2040/config.h | 1 - keyboards/handwired/onekey/kb2040/info.json | 3 +++ keyboards/handwired/onekey/rp2040/config.h | 1 - keyboards/handwired/onekey/rp2040/info.json | 3 +++ keyboards/handwired/onekey/teensy_35/config.h | 2 -- keyboards/handwired/onekey/teensy_35/info.json | 3 +++ 8 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 keyboards/handwired/onekey/bluepill_f103c6/info.json create mode 100644 keyboards/handwired/onekey/kb2040/info.json create mode 100644 keyboards/handwired/onekey/rp2040/info.json create mode 100644 keyboards/handwired/onekey/teensy_35/info.json (limited to 'keyboards/handwired/onekey') diff --git a/keyboards/handwired/onekey/bluepill_f103c6/config.h b/keyboards/handwired/onekey/bluepill_f103c6/config.h index e53aa63292..903277bd3b 100644 --- a/keyboards/handwired/onekey/bluepill_f103c6/config.h +++ b/keyboards/handwired/onekey/bluepill_f103c6/config.h @@ -18,8 +18,6 @@ #include "config_common.h" -#define PRODUCT Onekey Bluepill STM32F103C6 - #define MATRIX_COL_PINS { B0 } #define MATRIX_ROW_PINS { A7 } #define UNUSED_PINS diff --git a/keyboards/handwired/onekey/bluepill_f103c6/info.json b/keyboards/handwired/onekey/bluepill_f103c6/info.json new file mode 100644 index 0000000000..0ef180f6ec --- /dev/null +++ b/keyboards/handwired/onekey/bluepill_f103c6/info.json @@ -0,0 +1,3 @@ +{ + "keyboard_name": "Onekey Bluepill STM32F103C6" +} diff --git a/keyboards/handwired/onekey/kb2040/config.h b/keyboards/handwired/onekey/kb2040/config.h index 24a7d3a3eb..0bf7adf37f 100644 --- a/keyboards/handwired/onekey/kb2040/config.h +++ b/keyboards/handwired/onekey/kb2040/config.h @@ -5,7 +5,6 @@ #include "config_common.h" -#define PRODUCT Onekey Raspberry Pi RP2040 #define MATRIX_COL_PINS \ { GP4 } #define MATRIX_ROW_PINS \ diff --git a/keyboards/handwired/onekey/kb2040/info.json b/keyboards/handwired/onekey/kb2040/info.json new file mode 100644 index 0000000000..696b772142 --- /dev/null +++ b/keyboards/handwired/onekey/kb2040/info.json @@ -0,0 +1,3 @@ +{ + "keyboard_name": "Onekey KB2040" +} diff --git a/keyboards/handwired/onekey/rp2040/config.h b/keyboards/handwired/onekey/rp2040/config.h index f4e45a8981..c0ef468aa9 100644 --- a/keyboards/handwired/onekey/rp2040/config.h +++ b/keyboards/handwired/onekey/rp2040/config.h @@ -5,7 +5,6 @@ #include "config_common.h" -#define PRODUCT Onekey Raspberry Pi RP2040 #define MATRIX_COL_PINS \ { GP4 } #define MATRIX_ROW_PINS \ diff --git a/keyboards/handwired/onekey/rp2040/info.json b/keyboards/handwired/onekey/rp2040/info.json new file mode 100644 index 0000000000..696b021dc1 --- /dev/null +++ b/keyboards/handwired/onekey/rp2040/info.json @@ -0,0 +1,3 @@ +{ + "keyboard_name": "Onekey RP2040" +} diff --git a/keyboards/handwired/onekey/teensy_35/config.h b/keyboards/handwired/onekey/teensy_35/config.h index 18eebcaffd..13eaf1a4f6 100644 --- a/keyboards/handwired/onekey/teensy_35/config.h +++ b/keyboards/handwired/onekey/teensy_35/config.h @@ -19,8 +19,6 @@ // TODO: including this causes "error: expected identifier before '(' token" errors //#include "config_common.h" -#define PRODUCT Onekey Teensy 3.5 - #define MATRIX_COL_PINS { D5 } // 20/A6 #define MATRIX_ROW_PINS { B2 } // 19/A5 diff --git a/keyboards/handwired/onekey/teensy_35/info.json b/keyboards/handwired/onekey/teensy_35/info.json new file mode 100644 index 0000000000..99b6a236c5 --- /dev/null +++ b/keyboards/handwired/onekey/teensy_35/info.json @@ -0,0 +1,3 @@ +{ + "keyboard_name": "Onekey Teensy 3.5" +} -- cgit v1.2.3