FastLED 3.9.15
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:580
@ BRIGHTNESS
Reset global brightness to 255.
Definition FastLED.h:582
@ CHANNEL_ENGINES
Clear all channel drivers from ChannelManager.
Definition FastLED.h:585
@ POWER_SETTINGS
Reset power management (setMaxPowerInMilliWatts)
Definition FastLED.h:581
@ FPS_COUNTER
Reset FPS tracking counter to 0.
Definition FastLED.h:584
@ REFRESH_RATE
Reset refresh rate limiting to unlimited.
Definition FastLED.h:583
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 578 of file FastLED.h.

578 : fl::u32 {
579 NONE = 0,
580 CHANNELS = 1 << 0,
581 POWER_SETTINGS = 1 << 1,
582 BRIGHTNESS = 1 << 2,
583 REFRESH_RATE = 1 << 3,
584 FPS_COUNTER = 1 << 4,
585 CHANNEL_ENGINES = 1 << 5
586};
@ NONE
Clear nothing (no-op)
Definition FastLED.h:579