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 219 of file channel.cpp.hpp.
228
229
230
231
232
233
234
236
237
238
239
241
242
247
248
250}
CLEDController & setCorrection(CRGB correction) FL_NOEXCEPT
The color corrction to use for this controller, expressed as a CRGB object.
@ DeferRegister
Defer registration until addToList() is called.
CLEDController & setLeds(CRGB *data, int nLeds) FL_NOEXCEPT
Set the default array of LEDs to be used by this controller.
CLEDController & setDither(fl::u8 ditherMode=BINARY_DITHER) FL_NOEXCEPT
Set the dithering mode for this controller to use.
CLEDController & setTemperature(CRGB temperature) FL_NOEXCEPT
Set the color temperature, aka white point, for this controller.
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)
ChannelDataPtr mChannelData
fl::weak_ptr< IChannelDriver > mDriver
static ChannelDataPtr create(const ChipsetVariant &chipset, fl::vector_psram< u8 > &&encodedData=fl::vector_psram< u8 >()) FL_NOEXCEPT
Create channel transmission data (modern variant-based API)
void applyWhiteCfg(CLEDController &ctrl, const ChannelOptions &options) FL_NOEXCEPT
Apply the white-channel selection from ChannelOptions to a CLEDController.
References CPixelLEDController< RGB >::CPixelLEDController(), fl::ChannelData::create(), fl::CLEDController::DeferRegister, leds(), makeName(), mBus, mChannelData, mChipset, fl::ChannelOptions::mCorrection, fl::ChannelOptions::mDitherMode, mDriver, mId, mName, mRgbOrder, mSettings, fl::ChannelOptions::mTemperature, nextId(), fl::RGB, fl::CLEDController::setCorrection(), fl::CLEDController::setDither(), fl::CLEDController::setLeds(), and fl::CLEDController::setTemperature().