diff options
author | Ryan <fauxpark@gmail.com> | 2023-06-18 14:39:07 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-18 14:39:07 +1000 |
commit | b1783db4eacacaf8181cfbce13146db1941486ba (patch) | |
tree | d464d835a882fa7b2c205eb0b2d73f7ddf0b7145 /keyboards/matrix/m20add | |
parent | 7178645be79510eb623098bccbf1724ff9970edc (diff) |
Move `RGBLED_NUM` to data driven (#21278)
Diffstat (limited to 'keyboards/matrix/m20add')
-rw-r--r-- | keyboards/matrix/m20add/config.h | 3 | ||||
-rw-r--r-- | keyboards/matrix/m20add/info.json | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/matrix/m20add/config.h b/keyboards/matrix/m20add/config.h index 421773affc..5e301cf1c4 100644 --- a/keyboards/matrix/m20add/config.h +++ b/keyboards/matrix/m20add/config.h @@ -79,7 +79,6 @@ #define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2 // rgb light setting -#define RGBLED_NUM 20 #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD #define RGBLIGHT_EFFECT_RAINBOW_SWIRL @@ -94,4 +93,4 @@ #define DRIVER_ADDR_1 0b1110100 #define DRIVER_COUNT 1 -#define RGB_MATRIX_LED_COUNT RGBLED_NUM +#define RGB_MATRIX_LED_COUNT 20 diff --git a/keyboards/matrix/m20add/info.json b/keyboards/matrix/m20add/info.json index 7d88bb81f5..25abd25827 100644 --- a/keyboards/matrix/m20add/info.json +++ b/keyboards/matrix/m20add/info.json @@ -8,6 +8,9 @@ "pid": "0x20AD", "device_version": "0.0.1" }, + "rgblight": { + "led_count": 20 + }, "ws2812": { "pin": "B4" }, |