Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
PirLowLevel::PirLowLevel(int pin): mPin(pin) {
32
mPin.setPinMode(DigitalPin::kInput);
33
}
34
35
bool PirLowLevel::detect() {
36
return mPin.high();
Callers
nothing calls this directly
Calls
1
setPinMode
Method · 0.45
Tested by
no test coverage detected