FastLED 3.10.10
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 377 of file FastLED.cpp.hpp.

377 {
379}
fl::u8 mLastShownScale
brightness the last show()/showColor() applied, after the power limiter
Definition FastLED.h:730
fl::u8 mLastRequestedScale
brightness the last show()/showColor() was asked for
Definition FastLED.h:729

References FL_NO_EXCEPT, mLastRequestedScale, and mLastShownScale.