MCPcopy Create free account
hub / github.com/SmingHub/Sming / pulseIn

Function pulseIn

Sming/Arch/Host/Core/Digital.cpp:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98unsigned long pulseIn(uint16_t pin, uint8_t state, unsigned long timeout)
99{
100 if(checkPin(__FUNCTION__, pin) && activeHooks != nullptr) {
101 return activeHooks->pulseIn(pin, state, timeout);
102 } else {
103 return 0;
104 }
105}
106
107uint16_t analogRead(uint16_t pin)
108{

Callers 1

pingMethod · 0.50

Calls 2

checkPinFunction · 0.85
pulseInMethod · 0.80

Tested by

no test coverage detected