Search wiring.org.co:

Libraries

## Wiring/Processing using Firmata Protocol

This library allows to control the Wiring I/O board from Processing without write code in the Wiring IDE. Instead, you must upload the StandardFirmata sketch placed in File->Examples->Firmata->Example.

The library Wiring/Processing and some examples can be downloaded from here

To install the library placed the Wiring folder inside the libraries folder inside Processing.

Wiring()
Creates the Wiring object.

list()
Prints a list of all available serial port.

pinMode()
Sets a digital pin as INPUT or OUTPUT mode.

digitalRead()
Returns the value from a digital pin, asigned as INPUT mode.

digitalWrite()
Writes HIGH or LOW in a digital pin.

servoWrite()
Allows the manipulation of a servo motor.

analogRead()
Returns the value from an analog pin.

analogWrite()
Writes an analog value (PWM wave) to a digital pin that supports it.