User Tools

Site Tools


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.

Iup command operation flow

bool Iup(uint8_t id, bool input)

Commands

Command Arguments Return Value Operation
Iup(id, input) uint8_t id
bool 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.

← Built-in Command List

en-us_commands/reference/iup.1788785569.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki