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

Function makeSpi

tests/platforms/shared/bitbang/bitbang_channel_driver.cpp:31–37  ·  view source on GitHub ↗

Helper: create SPI ChannelData with given data/clock pins and byte data

Source from the content-addressed store, hash-verified

29
30// Helper: create SPI ChannelData with given data/clock pins and byte data
31ChannelDataPtr makeSpi(int dataPin, int clockPin, const u8* bytes,
32 size_t len) {
33 SpiChipsetConfig spiCfg(dataPin, clockPin, SpiEncoder::apa102());
34 fl::vector_psram<u8> data(bytes, bytes + len);
35 ChipsetVariant chipset = spiCfg;
36 return ChannelData::create(chipset, fl::move(data));
37}
38
39} // namespace
40

Callers 1

Calls 1

createFunction · 0.85

Tested by

no test coverage detected