Private constructor (use create() factory method)
- Parameters
-
| chipset | Chipset configuration (clockless or SPI) |
| leds | LED data array |
| rgbOrder | RGB channel ordering |
| options | Channel options (correction, temperature, dither, rgbw, affinity) |
Definition at line 342 of file channel.cpp.hpp.
353
354
355
356
357
358
359
361
362
363
364
366
367
371
372
374}
@ DeferRegister
Defer registration until addToList() is called.
CLEDController & setTemperature(CRGB temperature) FL_NO_EXCEPT
Set the color temperature, aka white point, for this controller.
CLEDController & setLeds(CRGB *data, int nLeds) FL_NO_EXCEPT
Set the default array of LEDs to be used by this controller.
ChannelOptions mSettings
Optional channel settings (correction, temperature, dither, rgbw, affinity)
CLEDController & setDither(fl::u8 ditherMode=BINARY_DITHER) FL_NO_EXCEPT
Set the dithering mode for this controller to use.
CLEDController & setCorrection(CRGB correction) FL_NO_EXCEPT
The color corrction to use for this controller, expressed as a CRGB object.
static fl::string makeName(i32 id, const fl::optional< fl::string > &configName=fl::optional< fl::string >())
fl::span< CRGB > leds()
Get the LED array as a span (non-const)
PixelEncoder mPixelEncoder
ChannelDataPtr mChannelData
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...
fl::weak_ptr< IChannelDriver > mDriver
static ChannelDataPtr create(const ChipsetVariant &chipset, fl::vector_psram< u8 > &&encodedData=fl::vector_psram< u8 >(), ChannelPixelFormat pixelFormat=ChannelPixelFormat::RGB) FL_NO_EXCEPT
Create channel transmission data (modern variant-based API)
void applyWhiteCfg(CLEDController &ctrl, const ChannelOptions &options) FL_NO_EXCEPT
Apply the white-channel selection from ChannelOptions to a CLEDController.
References CPixelLEDController< RGB >::CPixelLEDController(), fl::ChannelData::create(), fl::CLEDController::DeferRegister, fl::FL_NO_EXCEPT, leds(), makeName(), mBus, mBusWhich, mChannelData, mChipset, mDriver, mId, mName, mPixelEncoder, mRgbOrder, fl::CLEDController::mSettings, nextId(), selectPixelEncoder(), fl::CLEDController::setCorrection(), fl::CLEDController::setDither(), fl::CLEDController::setLeds(), and fl::CLEDController::setTemperature().
Referenced by Channel(), Channel(), encodeAPA102(), encodeHD108(), encodeLPD6803(), encodeLPD8806(), encodeMY9221(), encodeP9813(), encodeSK9822(), encodeSM16716(), encodeTM1812RGBWW(), encodeTM1908(), encodeUCS7604(), encodeWS2801(), encodeWS2803(), encodeWS2812(), isEnabled(), operator=(), operator=(), setGamma(), setScreenMap(), setScreenMap(), setScreenMap(), and setScreenMap().