summaryrefslogtreecommitdiff
path: root/keyboards/idobao/id80
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/idobao/id80')
-rw-r--r--keyboards/idobao/id80/v2/config.h34
-rw-r--r--keyboards/idobao/id80/v2/info.json8
-rw-r--r--keyboards/idobao/id80/v3/ansi/config.h4
-rw-r--r--keyboards/idobao/id80/v3/ansi/info.json6
-rw-r--r--keyboards/idobao/id80/v3/ansi/rules.mk1
5 files changed, 15 insertions, 38 deletions
diff --git a/keyboards/idobao/id80/v2/config.h b/keyboards/idobao/id80/v2/config.h
index d3eb71dc92..aa409bc487 100644
--- a/keyboards/idobao/id80/v2/config.h
+++ b/keyboards/idobao/id80/v2/config.h
@@ -17,39 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- * The matrix description in the vendor-supplied JSON file for kbfirmware.com
- * had 9 columns:
- * { D0, D1, D2, D3, D5, D4, D6, D7, B4 }
- * and 12 rows:
- * { B7, B3, B2, B1, B0, E6, F0, F1, F4, F5, F6, F7 }
- * However, the row 6 was completely empty, and the pin F0 was not actually
- * routed anywhere on the PCB, therefore this row was removed to save some
- * resources (the EEPROM space for dynamic keymaps is especially scarce).
- *
- * After doing the above change, the matrix was transposed (rows and columns
- * were swapped), because a matrix with the COL2ROW layout can be scanned much
- * more efficiently than a matrix with the ROW2COL layout (depending on various
- * optimizations, the difference in scan rate can be over 2 times). Because of
- * this, the "columns" in the matrix layout now mostly correspond to physical
- * rows, and the "rows" have mostly vertical physical orientation.
- */
-#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4 }
-#define MATRIX_COL_PINS { B7, B3, B2, B1, B0, E6, F1, F4, F5, F6, F7 }
-
-#define DIODE_DIRECTION COL2ROW
-
-#define RGB_DI_PIN E2
-#ifdef RGB_DI_PIN
#define RGBLED_NUM 20 /* 16 underglow LEDs, 4 top LEDs */
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
@@ -67,4 +34,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_EFFECT_SNAKE
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_TWINKLE
-#endif
diff --git a/keyboards/idobao/id80/v2/info.json b/keyboards/idobao/id80/v2/info.json
index 89b64f3951..247c3cb113 100644
--- a/keyboards/idobao/id80/v2/info.json
+++ b/keyboards/idobao/id80/v2/info.json
@@ -6,10 +6,18 @@
"vid": "0x6964",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["B7", "B3", "B2", "B1", "B0", "E6", "F1", "F4", "F5", "F6", "F7"],
+ "rows": ["D0", "D1", "D2", "D3", "D5", "D4", "D6", "D7", "B4"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "B6",
"breathing": true
},
+ "ws2812": {
+ "pin": "E2"
+ },
"indicators": {
"caps_lock": "C7",
"on_state": 0
diff --git a/keyboards/idobao/id80/v3/ansi/config.h b/keyboards/idobao/id80/v3/ansi/config.h
index bdabde0782..afe880fa8a 100644
--- a/keyboards/idobao/id80/v3/ansi/config.h
+++ b/keyboards/idobao/id80/v3/ansi/config.h
@@ -7,10 +7,8 @@
* RGB Matrix stuff
* ---------------- */
-#define RGB_DI_PIN E2
-
// RGB Matrix config
-#if defined(RGB_DI_PIN) && defined(RGB_MATRIX_ENABLE)
+#if defined(RGB_MATRIX_ENABLE)
#define RGB_MATRIX_LED_COUNT 94
diff --git a/keyboards/idobao/id80/v3/ansi/info.json b/keyboards/idobao/id80/v3/ansi/info.json
index 9797c60dfe..7788a941f4 100644
--- a/keyboards/idobao/id80/v3/ansi/info.json
+++ b/keyboards/idobao/id80/v3/ansi/info.json
@@ -14,6 +14,9 @@
"backlight": false,
"rgblight": false
},
+ "rgb_matrix": {
+ "driver": "WS2812"
+ },
"matrix_pins": {
"cols": ["B7", "B3", "B2", "B1", "B0", "E6", "F1", "F4", "F5", "F6", "F7"],
"rows": ["D0", "D1", "D2", "D3", "D5", "D4", "D6", "D7", "B4"]
@@ -25,6 +28,9 @@
"pid": "0x0380",
"device_version": "3.0.0"
},
+ "ws2812": {
+ "pin": "E2"
+ },
"bootmagic": {
"matrix": [0, 5]
},
diff --git a/keyboards/idobao/id80/v3/ansi/rules.mk b/keyboards/idobao/id80/v3/ansi/rules.mk
index eab741fd0a..58e39b17a5 100644
--- a/keyboards/idobao/id80/v3/ansi/rules.mk
+++ b/keyboards/idobao/id80/v3/ansi/rules.mk
@@ -2,4 +2,3 @@
# ** settings are data driven & stored in `info.json` **
RGB_MATRIX_ENABLE = yes
-RGB_MATRIX_DRIVER = WS2812