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

Function makeClockless

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

Helper: create clockless ChannelData with given pin and byte data

Source from the content-addressed store, hash-verified

22
23// Helper: create clockless ChannelData with given pin and byte data
24ChannelDataPtr makeClockless(int pin, const u8* bytes, size_t len) {
25 ChipsetTimingConfig timing(250, 625, 375, 280); // WS2812-like
26 fl::vector_psram<u8> data(bytes, bytes + len);
27 return ChannelData::create(pin, timing, fl::move(data));
28}
29
30// Helper: create SPI ChannelData with given data/clock pins and byte data
31ChannelDataPtr makeSpi(int dataPin, int clockPin, const u8* bytes,

Callers 1

Calls 1

createFunction · 0.85

Tested by

no test coverage detected