Set all leds on all controllers to the given color/scale.
- Parameters
-
color | what color to set the leds to |
scale | what brightness scale to show at |
Definition at line 193 of file FastLED.cpp.
193 {
196
197
200 }
201
207 } else {
209 }
212 }
213
219 }
221 }
222
228 }
231 }
234}
#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 void endShowLeds(void *data)
virtual int size()
How many LEDs does this controller manage?
static CLEDController * head()
Get the first LED controller in the linked list of controllers.
void showColorInternal(const struct CRGB &data, int nLeds, uint8_t brightness)
virtual void * beginShowLeds(int size)
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(), onEndFrame(), scale, CLEDController::setDither(), CLEDController::showColorInternal(), and CLEDController::size().
Referenced by clear().