User Tools

Site Tools


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.

Idown command operation flow

bool Idown(uint8_t id, bool input)

Commands

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

← Built-in Command List

en-us_commands/reference/idown.1788785567.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki