FastLED 3.10.8
Loading...
Searching...
No Matches

◆ begin()

bool fl::RxChannel::begin ( const RxChannelConfig & config)

Definition at line 101 of file channel.cpp.hpp.

101 {
102 bool recreate_device = !mDevice ||
103 config.pin != mConfig.pin ||
104 config.backend != mConfig.backend;
105 if (recreate_device) {
107 }
108 if (!config.name.empty()) {
109 mName = config.name;
110 }
111 mConfig = config;
112 return mDevice ? mDevice->begin(toRxConfig(mConfig)) : false;
113}
fl::shared_ptr< RxDevice > mDevice
Definition channel.h:65
RxChannelConfig mConfig
Definition channel.h:64
const RxChannelConfig & config() const FL_NO_EXCEPT
Definition channel.h:46
fl::string mName
Definition channel.h:63
static fl::shared_ptr< RxDevice > createBackendDevice(const RxChannelConfig &config) FL_NO_EXCEPT
static RxConfig toRxConfig(const RxChannelConfig &config) FL_NO_EXCEPT

References config(), fl::FL_NO_EXCEPT, mConfig, mDevice, and mName.

Referenced by executeToggles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: