ABL milliamps no longer hardcoded to 850 at runtime (#2581)
This commit is contained in:
parent
4642205768
commit
854ed8cfa9
@ -609,7 +609,7 @@ class WS2812FX {
|
|||||||
_brightness = DEFAULT_BRIGHTNESS;
|
_brightness = DEFAULT_BRIGHTNESS;
|
||||||
currentPalette = CRGBPalette16(CRGB::Black);
|
currentPalette = CRGBPalette16(CRGB::Black);
|
||||||
targetPalette = CloudColors_p;
|
targetPalette = CloudColors_p;
|
||||||
ablMilliampsMax = 850;
|
ablMilliampsMax = ABL_MILLIAMPS_DEFAULT;
|
||||||
currentMilliamps = 0;
|
currentMilliamps = 0;
|
||||||
timebase = 0;
|
timebase = 0;
|
||||||
resetSegments();
|
resetSegments();
|
||||||
|
@ -292,7 +292,13 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef ABL_MILLIAMPS_DEFAULT
|
||||||
#define ABL_MILLIAMPS_DEFAULT 850 // auto lower brightness to stay close to milliampere limit
|
#define ABL_MILLIAMPS_DEFAULT 850 // auto lower brightness to stay close to milliampere limit
|
||||||
|
#else
|
||||||
|
#if ABL_MILLIAMPS_DEFAULT < 250 // make sure value is at least 250
|
||||||
|
#define ABL_MILLIAMPS_DEFAULT 250
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// PWM settings
|
// PWM settings
|
||||||
#ifndef WLED_PWM_FREQ
|
#ifndef WLED_PWM_FREQ
|
||||||
|
Loading…
Reference in New Issue
Block a user