MCPcopy Create free account
hub / github.com/FastLED/FastLED / clearDisplay

Function clearDisplay

examples/Audio/advanced/advanced.h:173–179  ·  view source on GitHub ↗

Clear display

Source from the content-addressed store, hash-verified

171
172// Clear display
173void clearDisplay() {
174 if (fadeSpeed.as_int() == 0) {
175 fill_solid(leds, NUM_LEDS, fl::CRGB::Black);
176 } else {
177 fadeToBlackBy(leds, NUM_LEDS, fadeSpeed.as_int());
178 }
179}
180
181// Visualization: Spectrum Bars
182void drawSpectrumBars(fl::audio::fft::Bins* fft, float /* peak */) {

Callers 5

drawSpectrumBarsFunction · 0.85
drawRadialSpectrumFunction · 0.85
drawWaveformFunction · 0.85
drawVUMeterFunction · 0.85
drawFireEffectFunction · 0.85

Calls 3

fill_solidFunction · 0.50
fadeToBlackByFunction · 0.50
as_intMethod · 0.45

Tested by

no test coverage detected