summaryrefslogtreecommitdiff
path: root/keyboards/hub20
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hub20')
-rw-r--r--keyboards/hub20/config.h9
-rw-r--r--keyboards/hub20/info.json11
-rw-r--r--keyboards/hub20/rules.mk1
3 files changed, 11 insertions, 10 deletions
diff --git a/keyboards/hub20/config.h b/keyboards/hub20/config.h
index 41a98ac983..5fc99ecbf5 100644
--- a/keyboards/hub20/config.h
+++ b/keyboards/hub20/config.h
@@ -18,19 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#define MATRIX_ROW_PINS { A13, B14, A10, A0, A2, A1 }
-#define MATRIX_COL_PINS { A6, A7, B7, B6 }
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
-#define RGB_DI_PIN B15
#define RGBLED_NUM 27
#define RGB_MATRIX_LED_COUNT 27
-#ifdef RGB_DI_PIN
#define RGBLED_NUM 27
-#endif
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/hub20/info.json b/keyboards/hub20/info.json
index 10ec779fdf..991c4ebc46 100644
--- a/keyboards/hub20/info.json
+++ b/keyboards/hub20/info.json
@@ -8,12 +8,23 @@
"pid": "0x4414",
"device_version": "0.0.1"
},
+ "rgb_matrix": {
+ "driver": "WS2812"
+ },
+ "matrix_pins": {
+ "cols": ["A6", "A7", "B7", "B6"],
+ "rows": ["A13", "B14", "A10", "A0", "A2", "A1"]
+ },
+ "diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B12", "pin_b": "B13"},
{"pin_a": "A8", "pin_b": "A9"}
]
},
+ "ws2812": {
+ "pin": "B15"
+ },
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {
diff --git a/keyboards/hub20/rules.mk b/keyboards/hub20/rules.mk
index 2dd9c5acc6..081ea9225a 100644
--- a/keyboards/hub20/rules.mk
+++ b/keyboards/hub20/rules.mk
@@ -11,7 +11,6 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
RGB_MATRIX_ENABLE = yes
-RGB_MATRIX_DRIVER = WS2812
ENCODER_ENABLE = yes
# Enter lower-power sleep mode when on the ChibiOS idle thread