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

Function getEdge

src/platforms/stub/stub_gpio.cpp.hpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108fl::EdgeTime getEdge(int pin, size_t index) FL_NOEXCEPT {
109 auto& buffers = edgeBufferMap();
110 auto it = buffers.find(pin);
111 if (it == buffers.end()) return fl::EdgeTime();
112 const auto& edges = it->second.edges;
113 if (index >= edges.size()) return fl::EdgeTime();
114 return edges[index];
115}
116
117void simulateWS2812Output(int pin,
118 fl::span<const u8> data,

Callers

nothing calls this directly

Calls 4

EdgeTimeClass · 0.85
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected