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 107 of file FastLED.cpp.
107 {
111
112
115 }
116
117
118 int length = 0;
120
124 } else {
126 }
127 length++;
130 }
131
134 if (pCur->getEnabled()) {
135 pCur->showLedsInternal(
scale);
136 }
137 pCur = pCur->next();
138
139 }
140
141 length = 0;
144 if (pCur->getEnabled()) {
146 }
147 length++;
148 pCur = pCur->next();
149 }
153}
#define MAX_CLED_CONTROLLERS
static void * gControllersData[MAX_CLED_CONTROLLERS]
UISlider scale("Scale", 4,.1, 4,.1)
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()
References CLEDController::beginShowLeds(), countFPS(), CLEDController::endShowLeds(), gControllersData, CLEDController::getEnabled(), CLEDController::head(), lastshow, m_nFPS, m_nMinMicros, m_nPowerData, m_pPowerFunc, MAX_CLED_CONTROLLERS, CLEDController::next(), fl::EngineEvents::onBeginFrame(), fl::EngineEvents::onEndFrame(), fl::EngineEvents::onEndShowLeds(), scale, CLEDController::setDither(), CLEDController::showLedsInternal(), and CLEDController::size().