Move RGBLED_NUM to data driven (#21278)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
"soft_serial_pin": "D2"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 60,
|
||||
"split_count": [30, 30]
|
||||
},
|
||||
"ws2812": {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0512",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 12
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "D3"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user