From 51d5aad25b92a34bc051849616fcd93e3ae407fc Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 15 Aug 2022 13:30:12 +1000 Subject: Move keyboard USB IDs and strings to data driven, pass 2: D-E (#17956) --- keyboards/dztech/dz60rgb_ansi/info.json | 6 +++++- keyboards/dztech/dz60rgb_ansi/v1/config.h | 7 ------- keyboards/dztech/dz60rgb_ansi/v1/info.json | 6 ++++++ keyboards/dztech/dz60rgb_ansi/v2/config.h | 7 ------- keyboards/dztech/dz60rgb_ansi/v2/info.json | 6 ++++++ keyboards/dztech/dz60rgb_ansi/v2_1/config.h | 7 ------- keyboards/dztech/dz60rgb_ansi/v2_1/info.json | 6 ++++++ 7 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 keyboards/dztech/dz60rgb_ansi/v1/info.json create mode 100644 keyboards/dztech/dz60rgb_ansi/v2/info.json create mode 100644 keyboards/dztech/dz60rgb_ansi/v2_1/info.json (limited to 'keyboards/dztech/dz60rgb_ansi') diff --git a/keyboards/dztech/dz60rgb_ansi/info.json b/keyboards/dztech/dz60rgb_ansi/info.json index 8431f17708..31c04c9599 100644 --- a/keyboards/dztech/dz60rgb_ansi/info.json +++ b/keyboards/dztech/dz60rgb_ansi/info.json @@ -1,7 +1,11 @@ { - "keyboard_name": "dz60rgb_ansi", + "keyboard_name": "DZ60RGB_ANSI", + "manufacturer": "DZTECH", "url": "", "maintainer": "dztech", + "usb": { + "vid": "0x445A" + }, "layouts": { "LAYOUT_60_ansi": { "layout": [ diff --git a/keyboards/dztech/dz60rgb_ansi/v1/config.h b/keyboards/dztech/dz60rgb_ansi/v1/config.h index ccfe91b66b..518a3d7d4e 100644 --- a/keyboards/dztech/dz60rgb_ansi/v1/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v1/config.h @@ -1,12 +1,5 @@ #pragma once -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x445A -#define PRODUCT_ID 0x1220 -#define DEVICE_VER 0x0001 -#define MANUFACTURER DZTECH -#define PRODUCT DZ60RGB_ANSI - /* key matrix size */ #define MATRIX_ROWS 5 #define MATRIX_COLS 14 diff --git a/keyboards/dztech/dz60rgb_ansi/v1/info.json b/keyboards/dztech/dz60rgb_ansi/v1/info.json new file mode 100644 index 0000000000..6fcbd0806f --- /dev/null +++ b/keyboards/dztech/dz60rgb_ansi/v1/info.json @@ -0,0 +1,6 @@ +{ + "usb": { + "pid": "0x1220", + "device_version": "1.0.0" + } +} diff --git a/keyboards/dztech/dz60rgb_ansi/v2/config.h b/keyboards/dztech/dz60rgb_ansi/v2/config.h index 865ac2ab21..9efc5b75d3 100644 --- a/keyboards/dztech/dz60rgb_ansi/v2/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v2/config.h @@ -1,12 +1,5 @@ #pragma once -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x445A -#define PRODUCT_ID 0x1221 -#define DEVICE_VER 0x0002 -#define MANUFACTURER DZTECH -#define PRODUCT DZ60RGB_ANSI - /* key matrix size */ #define MATRIX_ROWS 5 #define MATRIX_COLS 14 diff --git a/keyboards/dztech/dz60rgb_ansi/v2/info.json b/keyboards/dztech/dz60rgb_ansi/v2/info.json new file mode 100644 index 0000000000..6d2ac4fbab --- /dev/null +++ b/keyboards/dztech/dz60rgb_ansi/v2/info.json @@ -0,0 +1,6 @@ +{ + "usb": { + "pid": "0x1221", + "device_version": "2.0.0" + } +} diff --git a/keyboards/dztech/dz60rgb_ansi/v2_1/config.h b/keyboards/dztech/dz60rgb_ansi/v2_1/config.h index 64e2a40bda..e08286cd64 100644 --- a/keyboards/dztech/dz60rgb_ansi/v2_1/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v2_1/config.h @@ -16,13 +16,6 @@ #pragma once -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x445A -#define PRODUCT_ID 0x1221 -#define DEVICE_VER 0x0002 -#define MANUFACTURER DZTECH -#define PRODUCT DZ60RGB_ANSI - /* key matrix size */ #define MATRIX_ROWS 5 #define MATRIX_COLS 14 diff --git a/keyboards/dztech/dz60rgb_ansi/v2_1/info.json b/keyboards/dztech/dz60rgb_ansi/v2_1/info.json new file mode 100644 index 0000000000..f2afc157ed --- /dev/null +++ b/keyboards/dztech/dz60rgb_ansi/v2_1/info.json @@ -0,0 +1,6 @@ +{ + "usb": { + "pid": "0x1221", + "device_version": "2.1.0" + } +} -- cgit v1.2.3