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

Function getPinState

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

Source from the content-addressed store, hash-verified

76}
77
78bool getPinState(int pin) FL_NOEXCEPT {
79 auto& state = pinStateMap();
80 auto it = state.find(pin);
81 if (it == state.end()) return false;
82 return it->second != 0;
83}
84
85void armPinEdges(int pin) FL_NOEXCEPT {
86 auto& buffers = edgeBufferMap();

Callers 1

digitalReadFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected