Use these functions when an input signal needs filtering.
IdigitalRead() — Reads the input several times consecutively and updates the state only when all values match. If HIGH and LOW are mixed, it retains the previous stable state.
Ibounce() — Applies a debounce time in both ON and OFF directions of the input.
IbounceOn() — Applies the time filter only when the input changes from OFF to ON.
IbounceOff() — Applies the time filter only when the input changes from ON to OFF.