Pinguino



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

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

println( value );
Description Retrieve the specified analog pin value.
Syntax analogRead(pin);
Parameters
pin int : the pin index
Return int the pin value (0-1024) or -1 on error
Usage Application