FastLED 3.10.9
Loading...
Searching...
No Matches

◆ isPowerLimited()

bool CFastLED::isPowerLimited ( ) const

True if the power limiter lowered the brightness of the most recent show() / showColor() below what it was asked for.

Lets a sketch with no serial console react to hitting its power budget.

Definition at line 373 of file FastLED.cpp.hpp.

373 {
375}
fl::u8 mLastShownScale
brightness the last show()/showColor() applied, after the power limiter
Definition FastLED.h:728
fl::u8 mLastRequestedScale
brightness the last show()/showColor() was asked for
Definition FastLED.h:727

References FL_NO_EXCEPT, mLastRequestedScale, and mLastShownScale.