Move RGBLED_NUM to data driven (#21278)

This commit is contained in:
Ryan
2023-06-18 14:39:07 +10:00
committed by GitHub
parent 7178645be7
commit b1783db4ea
2160 changed files with 2194 additions and 2058 deletions

View File

@@ -16,10 +16,6 @@
#pragma once
#ifdef RGBLIGHT_ENABLE
# define RGBLED_NUM 60 // Total number of LEDs
#endif
// Limit the power draw
#ifdef IOS_DEVICE_ENABLE
#define RGBLIGHT_LIMIT_VAL 40

View File

@@ -22,6 +22,7 @@
"soft_serial_pin": "D2"
},
"rgblight": {
"led_count": 60,
"split_count": [30, 30]
},
"ws2812": {

View File

@@ -1,6 +1,5 @@
#pragma once
# define RGBLED_NUM 12
# define RGBLIGHT_HUE_STEP 4
# define RGBLIGHT_SAT_STEP 4
# define RGBLIGHT_VAL_STEP 4

View File

@@ -8,6 +8,9 @@
"pid": "0x0512",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 12
},
"ws2812": {
"pin": "D3"
},