MCPcopy Create free account
hub / github.com/FastLED/FastLED / Channel

Method Channel

src/fl/channels/channel.cpp.hpp:206–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206Channel::Channel(const ChipsetVariant& chipset, EOrder rgbOrder, RegistrationMode mode)
207 : CPixelLEDController<RGB>(mode)
208 , mChipset(chipset)
209 , mRgbOrder(rgbOrder)
210 , mDriver()
211 , mBus(Bus::AUTO)
212 , mId(nextId())
213 , mName(makeName(mId)) {
214 // NOTE: Do NOT call fl::pinMode() here — see comment in the
215 // Channel(ChipsetVariant, span, EOrder, ChannelOptions) constructor.
216 mChannelData = ChannelData::create(mChipset);
217}
218
219Channel::Channel(const ChipsetVariant& chipset, fl::span<CRGB> leds,
220 EOrder rgbOrder, const ChannelOptions& options)

Callers

nothing calls this directly

Calls 3

createFunction · 0.85
applyWhiteCfgFunction · 0.85
ClocklessChipsetClass · 0.70

Tested by

no test coverage detected