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 |
|
||
Return | int the pin value (0-1024) or -1 on error | ||
Usage | Application | ||
Related | analogWrite() digitalWrite() digitalRead() |