ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
rcwl0516.cpp File Reference

One-GPIO presence facade - implementation. See rcwl0516.h. More...

Go to the source code of this file.

Detailed Description

One-GPIO presence facade - implementation. See rcwl0516.h.

Three steps per sample: track how long the raw level has been steady, promote it to the believed level once it outlasts the debounce, then extend presence for the hold past the last believed HIGH. Every elapsed-time test is an unsigned difference (now - stamp >= limit), which is exactly what makes it wrap-safe: at a millis() rollover the subtraction wraps with it and still yields the true elapsed interval.

Definition in file rcwl0516.cpp.