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

Method PirLowLevel

src/fl/sensors/pir.cpp.hpp:31–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29} // namespace
30
31PirLowLevel::PirLowLevel(int pin): mPin(pin) {
32 mPin.setPinMode(DigitalPin::kInput);
33}
34
35bool PirLowLevel::detect() {
36 return mPin.high();

Callers

nothing calls this directly

Calls 1

setPinModeMethod · 0.45

Tested by

no test coverage detected