summaryrefslogtreecommitdiff
path: root/keyboards/tgr
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-17 13:14:29 +1100
committerGitHub <noreply@github.com>2023-02-17 13:14:29 +1100
commitf4ba17c4a0ee59603c167b04f2d6f6eee8b2cf1b (patch)
tree11fec680226404eb46d2c61305cf7e848450c4d9 /keyboards/tgr
parentd784f78bd0a034c1d6085379615014fd701536ab (diff)
Move LED indicator config to data driven (#19800)
Diffstat (limited to 'keyboards/tgr')
-rw-r--r--keyboards/tgr/910/config.h4
-rw-r--r--keyboards/tgr/910/info.json5
-rw-r--r--keyboards/tgr/910ce/config.h2
-rw-r--r--keyboards/tgr/910ce/info.json3
-rw-r--r--keyboards/tgr/alice/config.h4
-rw-r--r--keyboards/tgr/alice/info.json5
-rw-r--r--keyboards/tgr/jane/v2/config.h3
-rw-r--r--keyboards/tgr/jane/v2/info.json4
-rw-r--r--keyboards/tgr/jane/v2ce/config.h3
-rw-r--r--keyboards/tgr/jane/v2ce/info.json4
-rw-r--r--keyboards/tgr/tris/config.h2
-rw-r--r--keyboards/tgr/tris/info.json3
12 files changed, 24 insertions, 18 deletions
diff --git a/keyboards/tgr/910/config.h b/keyboards/tgr/910/config.h
index 8571cfab11..68dc213ff5 100644
--- a/keyboards/tgr/910/config.h
+++ b/keyboards/tgr/910/config.h
@@ -29,10 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
-#define LED_NUM_LOCK_PIN D0
-#define LED_CAPS_LOCK_PIN D1
-#define LED_SCROLL_LOCK_PIN D6
-
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
diff --git a/keyboards/tgr/910/info.json b/keyboards/tgr/910/info.json
index bf9d895b4d..3c4de6fe39 100644
--- a/keyboards/tgr/910/info.json
+++ b/keyboards/tgr/910/info.json
@@ -8,6 +8,11 @@
"pid": "0x9100",
"device_version": "0.0.1"
},
+ "indicators": {
+ "caps_lock": "D1",
+ "num_lock": "D0",
+ "scroll_lock": "D6"
+ },
"processor": "atmega32a",
"bootloader": "bootloadhid",
"layouts": {
diff --git a/keyboards/tgr/910ce/config.h b/keyboards/tgr/910ce/config.h
index 478db04a54..209dabc0a9 100644
--- a/keyboards/tgr/910ce/config.h
+++ b/keyboards/tgr/910ce/config.h
@@ -29,8 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
-#define LED_CAPS_LOCK_PIN D1
-
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
#define RGBLIGHT_EFFECT_BREATHING
diff --git a/keyboards/tgr/910ce/info.json b/keyboards/tgr/910ce/info.json
index d38a4720f3..77655f52af 100644
--- a/keyboards/tgr/910ce/info.json
+++ b/keyboards/tgr/910ce/info.json
@@ -8,6 +8,9 @@
"pid": "0x910C",
"device_version": "0.0.1"
},
+ "indicators": {
+ "caps_lock": "D1"
+ },
"processor": "atmega32a",
"bootloader": "bootloadhid",
"community_layouts": ["65_ansi_blocker", "65_iso_blocker"],
diff --git a/keyboards/tgr/alice/config.h b/keyboards/tgr/alice/config.h
index 9373bb2b9c..df60d2cab4 100644
--- a/keyboards/tgr/alice/config.h
+++ b/keyboards/tgr/alice/config.h
@@ -25,10 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 }
#define DIODE_DIRECTION COL2ROW
-#define LED_NUM_LOCK_PIN D0
-#define LED_CAPS_LOCK_PIN D1
-#define LED_SCROLL_LOCK_PIN D6
-
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
diff --git a/keyboards/tgr/alice/info.json b/keyboards/tgr/alice/info.json
index cd1d330103..3586e49367 100644
--- a/keyboards/tgr/alice/info.json
+++ b/keyboards/tgr/alice/info.json
@@ -8,6 +8,11 @@
"pid": "0x422E",
"device_version": "2.0.0"
},
+ "indicators": {
+ "caps_lock": "D1",
+ "num_lock": "D0",
+ "scroll_lock": "D6"
+ },
"processor": "atmega32a",
"bootloader": "bootloadhid",
"community_layouts": ["alice_split_bs"],
diff --git a/keyboards/tgr/jane/v2/config.h b/keyboards/tgr/jane/v2/config.h
index 409afd6737..60d1644a2f 100644
--- a/keyboards/tgr/jane/v2/config.h
+++ b/keyboards/tgr/jane/v2/config.h
@@ -27,8 +27,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
-#define LED_CAPS_LOCK_PIN D1
-#define LED_SCROLL_LOCK_PIN D6
-
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
diff --git a/keyboards/tgr/jane/v2/info.json b/keyboards/tgr/jane/v2/info.json
index 89949c886f..f43d27c84f 100644
--- a/keyboards/tgr/jane/v2/info.json
+++ b/keyboards/tgr/jane/v2/info.json
@@ -8,6 +8,10 @@
"pid": "0x4A4E",
"device_version": "2.0.0"
},
+ "indicators": {
+ "caps_lock": "D1",
+ "scroll_lock": "D6"
+ },
"processor": "atmega32a",
"bootloader": "bootloadhid",
"community_layouts": ["tkl_ansi", "tkl_iso"],
diff --git a/keyboards/tgr/jane/v2ce/config.h b/keyboards/tgr/jane/v2ce/config.h
index d33b3a1d0b..06432495b5 100644
--- a/keyboards/tgr/jane/v2ce/config.h
+++ b/keyboards/tgr/jane/v2ce/config.h
@@ -28,6 +28,3 @@
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
-
-#define LED_CAPS_LOCK_PIN D1
-#define LED_NUM_LOCK_PIN D6
diff --git a/keyboards/tgr/jane/v2ce/info.json b/keyboards/tgr/jane/v2ce/info.json
index 391b657bed..3aa62ded58 100644
--- a/keyboards/tgr/jane/v2ce/info.json
+++ b/keyboards/tgr/jane/v2ce/info.json
@@ -8,6 +8,10 @@
"pid": "0x4A43",
"device_version": "2.0.0"
},
+ "indicators": {
+ "caps_lock": "D1",
+ "num_lock": "D6"
+ },
"processor": "atmega32a",
"bootloader": "bootloadhid",
"community_layouts": ["tkl_f13_ansi", "tkl_f13_ansi_tsangan", "tkl_f13_iso", "tkl_f13_iso_tsangan"],
diff --git a/keyboards/tgr/tris/config.h b/keyboards/tgr/tris/config.h
index dd0643f421..b85047c488 100644
--- a/keyboards/tgr/tris/config.h
+++ b/keyboards/tgr/tris/config.h
@@ -26,8 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
-#define LED_NUM_LOCK_PIN D0
-
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
diff --git a/keyboards/tgr/tris/info.json b/keyboards/tgr/tris/info.json
index bd2a42b77f..6ce36ce819 100644
--- a/keyboards/tgr/tris/info.json
+++ b/keyboards/tgr/tris/info.json
@@ -8,6 +8,9 @@
"pid": "0x5452",
"device_version": "0.0.1"
},
+ "indicators": {
+ "num_lock": "D0"
+ },
"processor": "atmega32a",
"bootloader": "bootloadhid",
"community_layouts": ["numpad_6x4", "ortho_6x4"],