en-us_commands:reference:ibounceoff
This is an old revision of the document!
Table of Contents
IbounceOff()
IbounceOff() applies the time filter only when the input changes from ON to OFF.
bool IbounceOff(uint8_t pin, uint32_t debounceTime)
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
IbounceOff(pin, debounceTime) | uint8_t pin — Input pin numberuint32_t debounceTime — Stable-state confirmation time (ms) | bool | Applies the time filter only when the input changes from ON to OFF. |
Example
if (!IbounceOff(0, 50)) { digitalWrite(32, LOW); }
Precautions
The Ibounce functions retain state, so keep calling them in loop(). Specify the actual pin or logical channel for your product.
en-us_commands/reference/ibounceoff.1788785566.txt.gz · Last modified: by 127.0.0.1
