Update all our controllers with the current led colors, using the passed in brightness.
381 {
386
388
391 }
393
394
395
398 ControllerIndex
length = 0;
400
404 } else {
406 }
410 }
411
414 if (pCur->getEnabled()) {
415 pCur->showLedsInternal(
scale);
416 }
417 pCur = pCur->next();
418
419 }
420
424 if (pCur->getEnabled()) {
426 }
428 pCur = pCur->next();
429 }
433}
#define MAX_CLED_CONTROLLERS
static void * gControllersData[MAX_CLED_CONTROLLERS]
static void throttleToMaxRefreshRate(fl::u32 minMicros) FL_NO_EXCEPT
#define FL_DITHER_ENABLE_MIN_REFRESH_HZ
High level controller interface for FastLED.
fl::UISlider scale("Scale", 4,.1, 4,.1)
power_func mPPowerFunc
function for overriding brightness when using FastLED.show();
void countFPS(int nFrames=25) FL_NO_EXCEPT
For debugging, this will keep track of time between calls to countFPS().
void onEndShowLeds() FL_NO_EXCEPT
Manually trigger the end show LEDs event.
void onBeginFrame() FL_NO_EXCEPT
Manually trigger the begin frame event.
void onEndFrame() FL_NO_EXCEPT
fl::u32 mNPowerData
max power use parameter
fl::u16 mNFPS
tracking for current frames per second (FPS) value
fl::u8 mLastShownScale
brightness the last show()/showColor() applied, after the power limiter
fl::u8 mLastRequestedScale
brightness the last show()/showColor() was asked for
fl::u16 mMaxRefreshHz
frame-rate cap in Hz, 0 = unlimited (u16 saves 2 B over micros, #4788)
static CLEDController * head() FL_NO_EXCEPT
Get the first LED controller in the linked list of controllers.
bool getEnabled() FL_NO_EXCEPT
VIRTUAL_IF_NOT_AVR void * beginShowLeds(int size) FL_NO_EXCEPT
VIRTUAL_IF_NOT_AVR int size() const FL_NO_EXCEPT
How many LEDs does this controller manage?
CLEDController & setDither(fl::u8 ditherMode=BINARY_DITHER) FL_NO_EXCEPT
Set the dithering mode for this controller to use.
CLEDController * next() FL_NO_EXCEPT
Get the next controller in the linked list after this one.
fl::CLEDController CLEDController
fl::UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
typename conditional< B, T, F >::type conditional_t
fl::u32 micros() FL_NO_EXCEPT
Universal microsecond timer - returns microseconds since system startup.