FastLED 3.10.8
Loading...
Searching...
No Matches
legacy_settings.h
Go to the documentation of this file.
1#pragma once
2
3#include "color.h"
4#include "dither_mode.h"
5#include "pixeltypes.h"
6#include "rgbw.h"
7#include "fl/gfx/rgbww.h"
8#include "fl/stl/variant.h"
9
10namespace fl {
11
12// Only settings consumed by the traditional controller/encoder path.
13// ChannelOptions must never be stored in the legacy controller base.
18 variant<Empty, Rgbw, Rgbww> mWhiteCfg;
19
21 if (const auto* value = mWhiteCfg.ptr<Rgbw>()) return *value;
22 return RgbwInvalid::value();
23 }
25 if (const auto* value = mWhiteCfg.ptr<Rgbww>()) return *value;
26 return RgbwwInvalid::value();
27 }
28};
29
30} // namespace fl
#define BINARY_DITHER
Enable dithering using binary dithering (only option)
Definition dither_mode.h:16
Declares dithering options and types.
@ UncorrectedTemperature
Uncorrected temperature (0xFFFFFF)
Definition color.h:90
@ UncorrectedColor
Uncorrected color (0xFFFFFF)
Definition color.h:24
unsigned char u8
Definition stdint.h:131
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
constexpr int type_rank< T >::value
Base definition for an LED controller.
Definition crgb.hpp:179
Includes defintions for RGB and HSV pixels.
5-channel RGB + warm-W + cool-W (RGBWW / RGBCCT) configuration types (issue #2558,...
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38
Rgbww rgbww() const FL_NO_EXCEPT
Rgbw rgbw() const FL_NO_EXCEPT
variant< Empty, Rgbw, Rgbww > mWhiteCfg
static Rgbw value() FL_NO_EXCEPT
Definition rgbw.h:279
static Rgbww value() FL_NO_EXCEPT
Definition rgbww.h:111