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

◆ setup()

void setup ( )

Definition at line 33 of file ColorProfile.ino.

33 {
35#if !defined(FASTLED_EXAMPLE_NO_COLOR_PROFILE)
36 // A profile describes the strip: its primaries' chromaticities and
37 // relative luminances. `WS2812B` is a placeholder until measured profiles
38 // land (P10); pass your own `fl::EmitterProfile` for a characterised part.
40#endif
41 // Dither. Binding a profile switches it off; asking for it again selects
42 // the pipeline's own temporal dither, for smoother fades at low
43 // brightness. Without a profile this is the default legacy dither, so
44 // both budget builds (see docs/color-pipeline-budgets.md) set it alike.
49 FastLED.setBrightness(64);
50}
CRGB leds[1]
#define NUM_LEDS
#define PIN_DATA
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define BINARY_DITHER
Enable dithering using binary dithering (only option)
Definition dither_mode.h:16
constexpr EOrder GRB
Definition eorder.h:19
static constexpr EmitterProfile WS2812B
constexpr ClocklessChipset makeClockless(int pin) FL_NO_EXCEPT
Build a ClocklessChipset from a compile-time TIMING trait.
Definition config.h:95
Configuration for a single LED channel.
Definition config.h:167
bool setColorProfile(const EmitterProfile &profile) FL_NO_EXCEPT
Definition options.h:99
fl::u8 mDitherMode
Definition options.h:88
Optional channel configuration parameters All fields have sensible defaults and can be overridden as ...
Definition options.h:85

References BINARY_DITHER, FastLED, GRB, leds, fl::makeClockless(), fl::ChannelOptions::mDitherMode, NUM_LEDS, PIN_DATA, fl::ChannelOptions::setColorProfile(), and fl::profiles::WS2812B.

+ Here is the call graph for this function: