en-us_commands:reference:iup
This is an old revision of the document!
Table of Contents
Iup()
Iup() returns true only at the instant the input changes from OFF to ON.
bool Iup(uint8_t id, bool input)
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
Iup(id, input) | uint8_t idbool input | bool | Returns true only at the instant the input changes from OFF to ON. |
Example
if (Iup(0, digitalRead(0))) { digitalWrite(32, HIGH); }
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/iup.1788785569.txt.gz · Last modified: by 127.0.0.1
