Apply reconfigurable settings from a ChannelConfig.
- Parameters
-
| config | The configuration to apply |
- Note
- Does NOT change: mChipset, mDriver, mId
Definition at line 534 of file channel.cpp.hpp.
534 {
536 if (config.mName.has_value()) {
537 mName = config.mName.value();
538 }
540
542#if !FL_COLOR_PROFILE_RUNTIME && !defined(FL_IS_AVR)
543
544
546#endif
551#if FL_COLOR_PROFILE_RUNTIME
552 if (reconcileColorProfile(config.options)) {
554 }
555#endif
556 events.onChannelConfigured(*this, config);
557}
CLEDController & setLeds(CRGB *data, int nLeds) FL_NO_EXCEPT
Set the default array of LEDs to be used by this controller.
i32 id() const FL_NO_EXCEPT override
Get the channel ID.
ColorProfileStatus colorProfileStatus() const FL_NO_EXCEPT
void syncLegacySettings() FL_NO_EXCEPT
bool mStaticProfileCleared
static ChannelEvents & instance() FL_NO_EXCEPT
References colorProfileStatus(), fl::FL_NO_EXCEPT, id(), fl::ChannelEvents::instance(), mBus, mBusWhich, mName, mRgbOrder, mSettings, mStaticProfileCleared, fl::CLEDController::setLeds(), and syncLegacySettings().