FastLED 3.10.8
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 369 of file FastLED.cpp.hpp.

369 {
371}
fl::u8 mLastShownScale
brightness the last show()/showColor() applied, after the power limiter
Definition FastLED.h:733
fl::u8 mLastRequestedScale
brightness the last show()/showColor() was asked for
Definition FastLED.h:732

References FL_NO_EXCEPT, mLastRequestedScale, and mLastShownScale.