Pinguino



Name Pinguino
Examples
import hypermedia.pinguino.*;

Pinguino board;

void setup() {
    board = new Pinguino(this);
}

void draw() {
    int value = board.analogRead(13);
    println(value);
}


Description Main object to communicate with Pinguino board via USB port.

You can test all implemented method with this small program.

Syntax Pinguino();
Pinguino(parent);
Parameters
parent PApplet : the Processing PApplet object (typically use "this")
Fields
DEFAULT_TIMEOUT Default timeout value in milliseconds.
errmsg The last error message
HIGH Digital pin status.
LOW Digital pin status.
Methods
analogRead() Retrieve the specified analog pin value.
analogWrite() Send the given value to the specified analog pin number.
clear() Clear all pin values.
digitalRead() Retrieve the specified digital pin value.
digitalWrite() Send the given value to the specified pin number.
log() Enable/disable status updates.
read() Retrieve the latest message from Pinguino device with an optional timeout value.
write() Send the given data to Pinguino device with an optional timeout value.
Usage Application