en-us_commands:ibounce
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:ibounce [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:ibounce [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| ===== Example ===== | ===== Example ===== | ||
| - | The following | + | This example filters MPAINO digital input '' |
| <code cpp> | <code cpp> | ||
| + | const uint8_t INPUT_CHANNEL = 0; | ||
| + | const uint8_t OUTPUT_CHANNEL = 64; | ||
| + | |||
| + | void setup() { | ||
| + | Serial.begin(115200); | ||
| + | } | ||
| + | |||
| void loop() { | void loop() { | ||
| - | // Return the retained | + | |
| - | | + | |
| - | | + | |
| + | | ||
| + | if (inputState | ||
| + | previousState = inputState; | ||
| + | Serial.println(inputState ? F(" | ||
| + | } | ||
| } | } | ||
| </ | </ | ||
| Line 33: | Line 45: | ||
| * '' | * '' | ||
| * An invalid pin number returns '' | * An invalid pin number returns '' | ||
| + | |||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/ibounce.1788785565.txt.gz · Last modified: by 127.0.0.1
