Pinguino



Name digitalRead()
Examples
import hypermedia.pinguino.*;

Pinguino pinguino = new Pinguino(this);  // connect to the Pinguino board
int value = pinguino.digitalRead( 0 );   // read value on pin 0

println( value );
Description Retrieve the specified digital pin value.
Syntax digitalRead(pin);
Parameters
pin int : the pin index
Return int the pin value 0 (LOW) or 1 (HIGH), or -1 on error
Usage Application