en-us_commands:reference:idown
This is an old revision of the document!
Table of Contents
Idown()
Idown() returns true only at the instant the input changes from ON to OFF.
bool Idown(uint8_t id, bool input)
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
Idown(id, input) | uint8_t idbool input | bool | Returns true only at the instant the input changes from ON to OFF. |
Example
if (Idown(1, digitalRead(0))) { digitalWrite(32, LOW); }
Precautions
Using the same id for different signals may mix their previous states. Do not set the minimum and maximum of the Iscale input range to the same value.
en-us_commands/reference/idown.1788785567.txt.gz · Last modified: by 127.0.0.1
