FastLED 3.10.6
Loading...
Searching...
No Matches

◆ ClearFlags

enum class ClearFlags : fl::u32
strong

Flags for FastLED.clear() to control what state gets cleared/reset.

These flags can be combined using bitwise OR (|) to clear multiple settings at once. Each flag controls a different aspect of FastLED's global state.

// Clear only channels
// Clear power settings and brightness
// Clear everything
@ CHANNELS
Remove all channels from controller list.
Definition FastLED.h:668
@ BRIGHTNESS
Reset global brightness to 255.
Definition FastLED.h:670
@ CHANNEL_ENGINES
Clear all channel drivers from ChannelManager.
Definition FastLED.h:673
@ POWER_SETTINGS
Reset power management (setMaxPowerInMilliWatts)
Definition FastLED.h:669
@ FPS_COUNTER
Reset FPS tracking counter to 0.
Definition FastLED.h:672
@ REFRESH_RATE
Reset refresh rate limiting to unlimited.
Definition FastLED.h:671
CFastLED FastLED
Global LED strip management instance.
Enumerator
NONE 

Clear nothing (no-op)

CHANNELS 

Remove all channels from controller list.

POWER_SETTINGS 

Reset power management (setMaxPowerInMilliWatts)

BRIGHTNESS 

Reset global brightness to 255.

REFRESH_RATE 

Reset refresh rate limiting to unlimited.

FPS_COUNTER 

Reset FPS tracking counter to 0.

CHANNEL_ENGINES 

Clear all channel drivers from ChannelManager.

Definition at line 666 of file FastLED.h.

666 : fl::u32 {
667 NONE = 0,
668 CHANNELS = 1 << 0,
669 POWER_SETTINGS = 1 << 1,
670 BRIGHTNESS = 1 << 2,
671 REFRESH_RATE = 1 << 3,
672 FPS_COUNTER = 1 << 4,
673 CHANNEL_ENGINES = 1 << 5
674};
@ NONE
Clear nothing (no-op)
Definition FastLED.h:667