From 201a914beb7a07d8e08b1cbfa8dd35a768f6ae3a Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 20 Aug 2022 10:42:49 +1000 Subject: Move keyboard USB IDs and strings to data driven, pass 2: P-R (#18091) --- keyboards/primekb/prime_e/config.h | 4 ---- keyboards/primekb/prime_e/info.json | 5 ++++- keyboards/primekb/prime_e/rgb/config.h | 5 ----- keyboards/primekb/prime_e/rgb/info.json | 7 +++++++ keyboards/primekb/prime_e/std/config.h | 5 ----- keyboards/primekb/prime_e/std/info.json | 7 +++++++ 6 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 keyboards/primekb/prime_e/rgb/info.json create mode 100644 keyboards/primekb/prime_e/std/info.json (limited to 'keyboards/primekb/prime_e') diff --git a/keyboards/primekb/prime_e/config.h b/keyboards/primekb/prime_e/config.h index 343a9dc0bf..f1bd0090c7 100644 --- a/keyboards/primekb/prime_e/config.h +++ b/keyboards/primekb/prime_e/config.h @@ -19,10 +19,6 @@ along with this program. If not, see . #include "config_common.h" -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x5052 -#define MANUFACTURER PrimeKB - /* key matrix size */ #define MATRIX_ROWS 4 #define MATRIX_COLS 13 diff --git a/keyboards/primekb/prime_e/info.json b/keyboards/primekb/prime_e/info.json index ee83f1bcbc..25f14ee9ce 100644 --- a/keyboards/primekb/prime_e/info.json +++ b/keyboards/primekb/prime_e/info.json @@ -1,7 +1,10 @@ { - "keyboard_name": "Prime_E", + "manufacturer": "PrimeKB", "url": "https://www.primekb.com", "maintainer": "holtenc", + "usb": { + "vid": "0x5052" + }, "layouts": { "LAYOUT": { "layout": [{"x":0,"y":0,"w":1,"h":1}, {"x":1,"y":0,"w":1,"h":1}, {"x":2,"y":0,"w":1,"h":1}, {"x":3,"y":0,"w":1,"h":1}, {"x":4,"y":0,"w":1,"h":1}, {"x":5,"y":0,"w":1,"h":1}, {"x":7,"y":0,"w":1,"h":1}, {"x":8,"y":0,"w":1,"h":1}, {"x":9,"y":0,"w":1,"h":1}, {"x":10,"y":0,"w":1,"h":1}, {"x":11,"y":0,"w":1,"h":1}, {"x":12,"y":0,"w":1,"h":1}, {"x":13,"y":0,"w":1,"h":1}, diff --git a/keyboards/primekb/prime_e/rgb/config.h b/keyboards/primekb/prime_e/rgb/config.h index a562ffba81..89cf43902c 100644 --- a/keyboards/primekb/prime_e/rgb/config.h +++ b/keyboards/primekb/prime_e/rgb/config.h @@ -19,11 +19,6 @@ along with this program. If not, see . #include "config_common.h" -/* USB Device descriptor parameter */ -#define PRODUCT_ID 0x0052 -#define DEVICE_VER 0x0001 -#define PRODUCT Prime_E RGB - #define RGB_DI_PIN B7 #define RGBLED_NUM 8 #define RGBLIGHT_ANIMATIONS diff --git a/keyboards/primekb/prime_e/rgb/info.json b/keyboards/primekb/prime_e/rgb/info.json new file mode 100644 index 0000000000..1d40389e87 --- /dev/null +++ b/keyboards/primekb/prime_e/rgb/info.json @@ -0,0 +1,7 @@ +{ + "keyboard_name": "Prime_E RGB", + "usb": { + "pid": "0x0052", + "device_version": "0.0.1" + } +} diff --git a/keyboards/primekb/prime_e/std/config.h b/keyboards/primekb/prime_e/std/config.h index a711e35b21..d6b242e08e 100644 --- a/keyboards/primekb/prime_e/std/config.h +++ b/keyboards/primekb/prime_e/std/config.h @@ -19,10 +19,5 @@ along with this program. If not, see . #include "config_common.h" -/* USB Device descriptor parameter */ -#define PRODUCT_ID 0x0051 -#define DEVICE_VER 0x0001 -#define PRODUCT Prime_E - #define BACKLIGHT_PIN B7 #define BACKLIGHT_LEVELS 5 diff --git a/keyboards/primekb/prime_e/std/info.json b/keyboards/primekb/prime_e/std/info.json new file mode 100644 index 0000000000..04f8842546 --- /dev/null +++ b/keyboards/primekb/prime_e/std/info.json @@ -0,0 +1,7 @@ +{ + "keyboard_name": "Prime_E", + "usb": { + "pid": "0x0051", + "device_version": "0.0.1" + } +} -- cgit v1.2.3