FastLED 3.10.10
Loading...
Searching...
No Matches
channel.h
Go to the documentation of this file.
1
12
13#pragma once
14
15#include "fl/stl/noexcept.h"
16
18#include "fl/channels/bus.h"
20#include "fl/channels/options.h"
21#include "fl/gfx/pipeline.h"
22#include "fl/stl/unique_ptr.h"
23#include "fl/stl/shared_ptr.h"
24#include "fl/stl/string.h"
25#include "fl/stl/weak_ptr.h"
26#include "fl/stl/stdint.h"
27#include "fl/channels/config.h"
30
31namespace fl {
32
33// Forward declarations
34class IChannelDriver;
35class ChannelData;
36class PixelIterator;
37template <typename T> class vector_psram;
38struct ChannelOptions; // IWYU pragma: keep
39class Channel;
40template<const EmitterProfile& Profile> class StaticProfileChannel;
41class XMap;
43enum class ProfileId : u8 { WS2812B };
46
47#if FL_COLOR_PIPELINE_SHARED
49#endif
50
60class Channel: public CPixelLEDController<RGB>, public IChannel {
61public:
70 static ChannelPtr create(const ChannelConfig& config) FL_NO_EXCEPT;
71 template<const EmitterProfile& Profile>
72 static ChannelPtr create(const ChannelConfig& config) FL_NO_EXCEPT {
73#ifdef FL_IS_AVR
74 FL_STATIC_ASSERT(&Profile == nullptr, "Color profiles are unsupported on AVR");
75#endif
76 ChannelConfig rebound(config);
77#if FL_COLOR_PROFILE_RUNTIME
78 rebound.options.clearColorProfile();
80 rebound.options.mColorProfile.mStaticProfile = &Profile;
81 rebound.options.mColorProfile.mRequested = true;
82#else
83#endif
84 auto channel = fl::make_shared<StaticProfileChannel<Profile>>(rebound);
85 channel->mName = makeName(channel->mId, rebound.mName);
86 auto& events = ChannelEvents::instance();
87#if FL_COLOR_PROFILE_RUNTIME
88 if (channel->reconcileColorProfile(rebound.options)) {
89 events.onColorProfileFallback(
90 ColorProfileEvent{channel->id(), channel->colorProfileStatus(), {}});
91 }
92#endif
93 events.onChannelCreated(*channel);
94 return channel;
95 }
96 template<ProfileId Id>
97 static ChannelPtr create(const ChannelConfig& config) FL_NO_EXCEPT {
98 return create<profiles::WS2812B>(config);
99 }
100
102 virtual ~Channel() FL_NO_EXCEPT;
103
106 i32 id() const FL_NO_EXCEPT override { return mId; }
107
110 const fl::string& name() const FL_NO_EXCEPT override { return mName; }
111
114 int getPin() const FL_NO_EXCEPT;
115
118 int getClockPin() const FL_NO_EXCEPT;
119
124
127 fl::optional<float> getGamma() const FL_NO_EXCEPT;
128
133
137
141
143 bool isClockless() const FL_NO_EXCEPT { return mChipset.is<ClocklessChipset>(); }
144
146 bool isSpi() const FL_NO_EXCEPT { return mChipset.is<SpiChipsetConfig>(); }
147
153 void applyConfig(const ChannelConfig& config) FL_NO_EXCEPT;
154
155 // Re-expose protected base class methods for external access
158
161
164
165#if FL_COLOR_PROFILE_RUNTIME
178#if FL_COLOR_PIPELINE_SHARED
179 using ColorPipelineStorage = fl::shared_ptr<StreamingPipelineQ16>;
180#else
181 // Small tiers: sync-only readers, so single ownership is provably safe
182 // and saves the control block (FL_COLOR_PIPELINE_SHARED).
183 using ColorPipelineStorage = fl::unique_ptr<StreamingPipelineQ16>;
184#endif
185#endif
186
189
191 bool isInDrawList() const FL_NO_EXCEPT;
192
194 CLEDController* asController() FL_NO_EXCEPT { return static_cast<CLEDController*>(this); }
195 const CLEDController* asController() const FL_NO_EXCEPT { return static_cast<const CLEDController*>(this); }
196#ifndef FL_IS_AVR
197 const Channel* asChannel() const FL_NO_EXCEPT override { return this; }
198#endif
199
202
204 fl::span<const CRGB> leds() const FL_NO_EXCEPT;
205
208
211
214
216 Rgbw getRgbw() const FL_NO_EXCEPT;
217
218 bool hasColorProfile() const FL_NO_EXCEPT { return emitterProfile() != nullptr; }
229#if FL_COLOR_PROFILE_RUNTIME
230 return mPipeline != nullptr;
231#else
232 return false;
233#endif
234 }
236#ifdef FL_IS_AVR
237 return nullptr;
238#else
239 const EmitterProfile* profile = staticEmitterProfile();
240 return profile != nullptr && !mStaticProfileCleared
241 ? profile : mSettings.emitterProfile();
242#endif
243 }
245#if FL_COLOR_PROFILE_RUNTIME
246 return mSettings.mColorProfile.mSource;
247#else
249#endif
250 }
251 Chromaticity targetWhite() const FL_NO_EXCEPT { return mSettings.targetWhite(); }
252
253#if FL_COLOR_PIPELINE_SHARED
258#endif
259 bool isEnabled() const FL_NO_EXCEPT { return const_cast<Channel*>(this)->getEnabled(); }
264#if FL_COLOR_PROFILE_RUNTIME
265 return mColorProfileFallback;
266#else
267 return false;
268#endif
269 }
271#if FL_COLOR_PROFILE_RUNTIME
272 return mProfileBindingAccepted;
273#else
274 return true;
275#endif
276 }
278#if FL_COLOR_PROFILE_RUNTIME
279 if (mColorProfileFallback) return mProfileBindingAccepted ? ColorProfileStatus::Fallback : ColorProfileStatus::Rejected;
280#endif
282 }
283
286
291 Channel& setScreenMap(const fl::XYMap& map, float diameter = -1.f) FL_NO_EXCEPT;
292
297
303 Channel& setScreenMap(fl::u16 width, fl::u16 height, float diameter = -1.f) FL_NO_EXCEPT;
304
309
312 const fl::ScreenMap& getScreenMap() const FL_NO_EXCEPT;
313
316 bool hasScreenMap() const FL_NO_EXCEPT;
317
318private:
320 template<typename T, typename... Args>
321 friend fl::shared_ptr<T> fl::adl_barrier::make_shared(Args&&... args) FL_NO_EXCEPT; // see fl/stl/adl_barrier.h
322 template<const EmitterProfile& Profile>
324
325protected:
326 // CPixelLEDController interface implementation - protected so subclass delegates
327 // (e.g., UCS7604's DelegateController) can call through the base class chain.
328 void showPixels(PixelController<RGB, 1, 0xFFFFFFFF>& pixels) FL_NO_EXCEPT override;
329 void init() FL_NO_EXCEPT override;
330 using PixelEncoder = void (*)(Channel&, PixelIterator&, bool,
331 fl::vector_psram<u8>&);
332
333private:
343
348
351 FL_NO_INLINE void encodeFrame(PixelController<RGB, 1, 0xFFFFFFFF>& pixels) FL_NO_EXCEPT;
352
357
363 FL_NO_INLINE static void encodeWS2812(Channel&, PixelIterator&, bool,
367 FL_NO_INLINE static void encodeTM1908(Channel&, PixelIterator&, bool,
369 FL_NO_INLINE static void encodeUCS7604(Channel&, PixelIterator&, bool,
371 FL_NO_INLINE static void encodeAPA102(Channel&, PixelIterator&, bool,
373 FL_NO_INLINE static void encodeSK9822(Channel&, PixelIterator&, bool,
375 FL_NO_INLINE static void encodeWS2801(Channel&, PixelIterator&, bool,
377 FL_NO_INLINE static void encodeWS2803(Channel&, PixelIterator&, bool,
379 FL_NO_INLINE static void encodeP9813(Channel&, PixelIterator&, bool,
381 FL_NO_INLINE static void encodeLPD8806(Channel&, PixelIterator&, bool,
383 FL_NO_INLINE static void encodeLPD6803(Channel&, PixelIterator&, bool,
385 FL_NO_INLINE static void encodeSM16716(Channel&, PixelIterator&, bool,
387 FL_NO_INLINE static void encodeHD108(Channel&, PixelIterator&, bool,
389 FL_NO_INLINE static void encodeMY9221(Channel&, PixelIterator&, bool,
391
392private:
398 Channel(const ChipsetVariant& chipset, fl::span<CRGB> leds,
399 EOrder rgbOrder, const ChannelOptions& options) FL_NO_EXCEPT;
400
403 Channel(int pin, const ChipsetTimingConfig& timing, fl::span<CRGB> leds,
404 EOrder rgbOrder, const ChannelOptions& options) FL_NO_EXCEPT;
405
406 // Non-copyable, non-movable
407 Channel(const Channel&) FL_NO_EXCEPT = delete;
408 Channel& operator=(const Channel&) FL_NO_EXCEPT = delete;
410 Channel& operator=(Channel&&) FL_NO_EXCEPT = delete;
411
412 static i32 nextId() FL_NO_EXCEPT;
413 static fl::string makeName(i32 id, const fl::optional<fl::string>& configName = fl::optional<fl::string>()) FL_NO_EXCEPT;
414
415 ChipsetVariant mChipset; // Chipset configuration (clockless or SPI)
416 PixelEncoder mPixelEncoder = nullptr; // Bound once from mChipset at construction.
418#if FL_COLOR_PROFILE_RUNTIME
433 ColorPipelineStorage mPipeline;
434#endif
435 fl::weak_ptr<IChannelDriver> mDriver; // Cached dynamic driver (weak, prevents dangling pointers).
436 // Re-resolved by resolveDynamicDriver() on every showPixels()
437 // call so users can swap drivers at runtime.
438 Bus mBus = Bus::AUTO; // Typed driver selection (#2459). `Bus::AUTO` falls through
439 // to `ChannelManager` priority dispatch; any other value
440 // pins this channel to `busName(mBus)`.
441 fl::u8 mBusWhich = 0; // Instance selector for portable buses.
446 bool mDisabledDriverWarned = false; // One-shot guard for the #2517 FL_ERROR. Flipped on the
447 // first showPixels() that would have enqueued data to a
448 // driver disabled by `setExclusiveDriver(...)` (or
449 // `setDriverEnabled(name, false)`). Cleared whenever the
450 // resolved driver returns to ENABLED so a subsequent
451 // disable re-emits the diagnostic.
452 const i32 mId;
453 fl::string mName; // User-specified or auto-generated name
454 ChannelDataPtr mChannelData;
455 fl::ScreenMap mScreenMap; // Screen map for JS canvas visualization
457#ifndef FL_IS_AVR
459#endif
461#ifndef FL_IS_AVR
462 void onSettingsChanged(SettingsChange change) FL_NO_EXCEPT override;
463 virtual const EmitterProfile* staticEmitterProfile() const FL_NO_EXCEPT { return nullptr; }
464#endif
465
466#if FL_COLOR_PROFILE_RUNTIME
467 // Recompute the color-profile verdict from the current mSettings and
468 // apply its consequences. Runs on both creation and reconfiguration, so
469 // applyConfig() cannot leave a channel reporting the verdict of the
470 // configuration it just replaced. Returns true when the binding fell back.
471 // Reads the requested configuration from `options`; mSettings may receive
472 // the current global source default while deriving the installed pipeline.
473 bool reconcileColorProfile(const ChannelOptions& options) FL_NO_EXCEPT;
474
478 void raiseColorProfileFallback(const char* reason) FL_NO_EXCEPT;
479
480 bool mColorProfileFallback = false;
481 bool mProfileBindingAccepted = true;
482 // C5 asks for the fallback warning to be one-time. Set on the first
483 // emission and never cleared: a channel reconfigured repeatedly while
484 // still unable to bind should say so once, not once per configure
485 // (#4333).
486 bool mWarnedColorProfileFallback = false;
487#endif
488};
489
492template<const EmitterProfile& Profile>
493class StaticProfileChannel final : public Channel {
494public:
496 : Channel(config.chipset, config.mLeds, config.rgb_order, config.options) {
497#ifdef FL_IS_AVR
498 FL_STATIC_ASSERT(&Profile == nullptr, "Color profiles are unsupported on AVR");
499#endif
500 }
501
502protected:
503#ifndef FL_IS_AVR
505#if FL_COLOR_PROFILE_RUNTIME
506 return nullptr;
507#else
508 return &Profile;
509#endif
510 }
511#endif
512};
513
517IChannelDriver* getStubChannelEngine() FL_NO_EXCEPT;
518
519} // namespace fl
CRGB leds[1]
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
CLEDController * controller
Portable compile-time identifiers for LED channel buses.
CPixelLEDController(RegistrationMode mode) FL_NO_EXCEPT
bool getEnabled() FL_NO_EXCEPT
int getPin() const FL_NO_EXCEPT
Get the pin number for this channel (data pin)
static FL_NO_INLINE void encodeWS2801(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
EOrder mRgbOrder
Definition channel.h:417
int getClockPin() const FL_NO_EXCEPT
Get the clock pin for this channel (SPI only, -1 for clockless)
static FL_NO_INLINE void encodeSK9822(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
CRGB getTemperature() FL_NO_EXCEPT
Get the color temperature.
static i32 nextId() FL_NO_EXCEPT
void(*)(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) PixelEncoder
Definition channel.h:330
u8 ditherPhase() const FL_NO_EXCEPT
Where this channel is in its dither cycle: the number of frames its driver has accepted,...
virtual ~Channel() FL_NO_EXCEPT
Destructor.
fl::u8 mBusWhich
Definition channel.h:441
ChipsetVariant mChipset
Definition channel.h:415
bool hasScreenMap() const FL_NO_EXCEPT
Check if screen map is configured.
void showPixels(PixelController< RGB, 1, 0xFFFFFFFF > &pixels) FL_NO_EXCEPT override
const Channel * asChannel() const FL_NO_EXCEPT override
Definition channel.h:197
bool isSpi() const FL_NO_EXCEPT
Check if this is an SPI chipset.
Definition channel.h:146
PixelEncoder mPixelEncoder
Definition channel.h:416
static FL_NO_INLINE void encodeWS2812(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
const CLEDController * asController() const FL_NO_EXCEPT
Definition channel.h:195
const SourceProfile & sourceProfile() const FL_NO_EXCEPT
Definition channel.h:244
bool isInDrawList() const FL_NO_EXCEPT
Check if this channel is in the controller draw list.
u8 mDitherPhase
This channel's temporal-dither phase.
Definition channel.h:445
const fl::string & name() const FL_NO_EXCEPT override
Get the channel name.
Definition channel.h:110
void showLeds(u8 brightness=255) FL_NO_EXCEPT OVERRIDE_IF_NOT_AVR
Show the LEDs with optional brightness scaling.
CRGB getCorrection() FL_NO_EXCEPT
Get the color correction.
fl::optional< float > getGamma() const FL_NO_EXCEPT
Get gamma correction value.
static fl::string makeName(i32 id, const fl::optional< fl::string > &configName=fl::optional< fl::string >()) FL_NO_EXCEPT
u8 getDither() FL_NO_EXCEPT
Get the dither mode.
const fl::ScreenMap & getScreenMap() const FL_NO_EXCEPT
Get the current screen map.
void removeFromDrawList() FL_NO_EXCEPT
Remove this channel from the global controller draw list.
bool isEnabled() const FL_NO_EXCEPT
Definition channel.h:259
fl::span< CRGB > leds() FL_NO_EXCEPT
Get the LED array as a span (non-const)
void onSettingsChanged(SettingsChange change) FL_NO_EXCEPT override
FL_NO_INLINE fl::shared_ptr< IChannelDriver > resolveDynamicDriver() FL_NO_EXCEPT
Cold slow-path helper for showPixels().
fl::ScreenMap mScreenMap
Definition channel.h:455
ChannelDataPtr mChannelData
Definition channel.h:454
static FL_NO_INLINE void encodeTM1908(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
friend class StaticProfileChannel
Definition channel.h:323
static PixelEncoder selectPixelEncoder(const ChipsetVariant &) FL_NO_EXCEPT
The chipset is fixed when a Channel is constructed, so bind its pixel encoder once instead of switchi...
Channel & setScreenMap(const fl::XYMap &map, float diameter=-1.f) FL_NO_EXCEPT
Set screen map for JS canvas visualization from XYMap.
int size() const FL_NO_EXCEPT OVERRIDE_IF_NOT_AVR
Get the number of LEDs in this channel.
FL_NO_INLINE bool waitForInUseBuffer() FL_NO_EXCEPT
Cold helper for showPixels() when mChannelData is still in use by the driver: warns and waits for REA...
static FL_NO_INLINE void encodeLPD6803(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
bool isClockless() const FL_NO_EXCEPT
Check if this is a clockless chipset.
Definition channel.h:143
static FL_NO_INLINE void encodeP9813(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
fl::string getEngineName() const FL_NO_EXCEPT
Get the name of the currently bound driver (if any)
static FL_NO_INLINE void encodeWS2803(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
static FL_NO_INLINE void encodeUCS7604(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
Channel(const ChipsetVariant &chipset, fl::span< CRGB > leds, EOrder rgbOrder, const ChannelOptions &options) FL_NO_EXCEPT
Private constructor (use create() factory method)
ColorProfileStatus colorProfileStatus() const FL_NO_EXCEPT
Definition channel.h:277
bool hasColorProfile() const FL_NO_EXCEPT
Definition channel.h:218
const EmitterProfile * emitterProfile() const FL_NO_EXCEPT
Definition channel.h:235
static ChannelPtr create(const ChannelConfig &config) FL_NO_EXCEPT
Create a new channel with optional mBus driver pinning.
CLEDController * asController() FL_NO_EXCEPT
Get pointer to base CLEDController for linked list traversal.
Definition channel.h:194
void syncLegacySettings() FL_NO_EXCEPT
FL_NO_INLINE void encodeFrame(PixelController< RGB, 1, 0xFFFFFFFF > &pixels) FL_NO_EXCEPT
Encode pixels into mChannelData and fire onChannelDataEncoded (#4566).
static FL_NO_INLINE void encodeTM1812RGBWW(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
static FL_NO_INLINE void encodeLPD8806(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
virtual const EmitterProfile * staticEmitterProfile() const FL_NO_EXCEPT
Definition channel.h:463
Rgbw getRgbw() const FL_NO_EXCEPT
Get the RGBW conversion mode.
Chromaticity targetWhite() const FL_NO_EXCEPT
Definition channel.h:251
Channel & setGamma(float gamma) FL_NO_EXCEPT
Set gamma correction value.
bool mDisabledDriverWarned
Definition channel.h:446
bool isColorManaged() const FL_NO_EXCEPT
True when the streaming transform is actually installed in the output path, which is not the same que...
Definition channel.h:228
const ChipsetTimingConfig & getTiming() const FL_NO_EXCEPT
Get the timing configuration for this channel (clockless only)
void init() FL_NO_EXCEPT override
Initialize the LED controller.
fl::weak_ptr< IChannelDriver > mDriver
Definition channel.h:435
static FL_NO_INLINE void encodeAPA102(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
friend fl::shared_ptr< T > fl::adl_barrier::make_shared(Args &&... args) FL_NO_EXCEPT
Friend declaration for make_shared to access private constructor.
EOrder getRgbOrder() const FL_NO_EXCEPT
Get the RGB channel ordering.
Definition channel.h:140
bool mStaticProfileCleared
Definition channel.h:458
static FL_NO_INLINE void encodeMY9221(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
const i32 mId
Definition channel.h:452
void applyConfig(const ChannelConfig &config) FL_NO_EXCEPT
Apply reconfigurable settings from a ChannelConfig.
static ChannelPtr create(const ChannelConfig &config) FL_NO_EXCEPT
Definition channel.h:72
FL_NO_INLINE void submitFrame(const fl::shared_ptr< IChannelDriver > &driver) FL_NO_EXCEPT
Submit the encoded frame to driver: disabled-driver drop + one-shot diagnostic, enqueue,...
bool hasColorProfileFallback() const FL_NO_EXCEPT
Definition channel.h:263
void addToDrawList() FL_NO_EXCEPT
Add this channel to the global controller draw list.
fl::string mName
Definition channel.h:453
const ChipsetVariant & getChipset() const FL_NO_EXCEPT
Get the chipset configuration variant.
Definition channel.h:136
static FL_NO_INLINE void encodeSM16716(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
bool profileBindingAccepted() const FL_NO_EXCEPT
Definition channel.h:270
ChannelOptions mSettings
Definition channel.h:456
static FL_NO_INLINE void encodeHD108(Channel &, PixelIterator &, bool, fl::vector_psram< u8 > &) FL_NO_EXCEPT
Transmission data for a single LED channel.
Definition data.h:56
LED channel for parallel output, pretty much a CPixelLEDController but with timing and pin informatio...
Definition channel.h:60
IChannel() FL_NO_EXCEPT=default
Minimal interface for LED channel transmission drivers.
Definition driver.h:53
StaticProfileChannel(const ChannelConfig &config) FL_NO_EXCEPT
Definition channel.h:495
const EmitterProfile * staticEmitterProfile() const FL_NO_EXCEPT override
Definition channel.h:504
A compile-time profile channel.
Definition channel.h:493
defines the templated version of the CLEDController class
Type-erased base for the templated Channel<Bus, Chipset> family.
byte Channel
Definition midi_Defs.h:58
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:423
SourceProfile & defaultSourceProfile() FL_NO_EXCEPT
unsigned char u8
Definition s16x16x4.h:132
unsigned char u8
Definition stdint.h:132
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
void installColorPipelineHooks() FL_NO_EXCEPT
Point the hooks at the real implementations.
IChannelDriver * getStubChannelEngine() FL_NO_EXCEPT
Get stub channel driver for testing or unsupported platforms.
MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > > map
Definition map.h:283
constexpr u32 gamma(float g) FL_NO_EXCEPT
Definition gamma_lut.h:36
u8 u8 height
Definition blur.h:186
Optional< T > optional
Definition optional.h:16
fl::variant< ClocklessChipset, SpiChipsetConfig > ChipsetVariant
Definition config.h:157
Bus
Portable public bus selector.
Definition bus.h:31
@ AUTO
Definition bus.h:32
u8 width
Definition blur.h:186
EOrder
RGB color channel orderings, used when instantiating controllers to determine what order the controll...
Definition eorder.h:15
ColorProfileStatus
Definition channel.h:42
ProfileId
Definition channel.h:43
Base definition for an LED controller.
Payload shared by every color-profile notification.
corkscrew_args args
Definition old.h:149
#define FL_STATIC_ASSERT(...)
#define FL_NO_INLINE
#define OVERRIDE_IF_NOT_AVR
#define FL_NO_EXCEPT
#define FASTLED_SHARED_PTR(type)
Definition shared_ptr.h:577
Pixel controller class.
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38
fl::optional< fl::string > mName
Optional user-specified name (if not set, Channel generates one automatically)
Definition config.h:283
ChannelOptions options
Optional channel settings (correction, temperature, dither, rgbw, affinity)
Definition config.h:277
fl::span< CRGB > mLeds
LED data array.
Definition config.h:271
ChipsetVariant chipset
Chipset configuration (clockless or SPI)
Definition config.h:268
EOrder rgb_order
RGB channel ordering.
Definition config.h:274
Configuration for a single LED channel.
Definition config.h:167
static ChannelEvents & instance() FL_NO_EXCEPT
void clearColorProfile() FL_NO_EXCEPT
Definition options.h:231
Optional channel configuration parameters All fields have sensible defaults and can be overridden as ...
Definition options.h:93
Runtime bit-period timing for a clockless chipset.
CIE 1931 xy chromaticity, independent of encoded storage and chipset.
Clockless chipset configuration (single data pin)
Definition config.h:33
A source declaration, not a container or an output-device selection.
SPI chipset configuration (data + clock pins)
Definition config.h:103