Update all our controllers with the current led colors, using the passed in brightness.
- Parameters
-
scale | the brightness value to use in place of the stored value |
Definition at line 119 of file FastLED.cpp.
119 {
123
124
127 }
128
129
132
136 } else {
138 }
142 }
143
146 if (pCur->getEnabled()) {
147 pCur->showLedsInternal(
scale);
148 }
149 pCur = pCur->next();
150
151 }
152
156 if (pCur->getEnabled()) {
158 }
160 pCur = pCur->next();
161 }
165}
#define MAX_CLED_CONTROLLERS
static void * gControllersData[MAX_CLED_CONTROLLERS]
uint32_t m_nMinMicros
minimum µs between frames, used for capping frame rates
uint16_t m_nFPS
tracking for current frames per second (FPS) value
power_func m_pPowerFunc
function for overriding brightness when using FastLED.show();
void countFPS(int nFrames=25)
For debugging, this will keep track of time between calls to countFPS().
uint32_t m_nPowerData
max power use parameter
CLEDController * next()
Get the next controller in the linked list after this one.
CLEDController & setDither(uint8_t ditherMode=BINARY_DITHER)
Set the dithering mode for this controller to use.
virtual int size()
How many LEDs does this controller manage?
static CLEDController * head()
Get the first LED controller in the linked list of controllers.
virtual void * beginShowLeds(int size)
static void onBeginFrame()
static void onEndShowLeds()
UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
References CLEDController::beginShowLeds(), countFPS(), CLEDController::endShowLeds(), gControllersData, CLEDController::getEnabled(), CLEDController::head(), lastshow, length(), m_nFPS, m_nMinMicros, m_nPowerData, m_pPowerFunc, MAX_CLED_CONTROLLERS, CLEDController::next(), fl::EngineEvents::onBeginFrame(), onEndFrame(), fl::EngineEvents::onEndShowLeds(), scale, CLEDController::setDither(), CLEDController::showLedsInternal(), and CLEDController::size().