The Hardware I/O library allows access to the computer's hardware peripherals, such as digital inputs and outputs, serial busses, and the like, in a fashion similar to the Arduino platform. This library is only available for embedded Linux boards with the necessary kernel drivers, such as the Raspberry Pi.
The source code is available on the processing GitHub repository. Please report bugs here.
The GPIO class reads and writes from General Purpose I/O pins
Calls a function when the value of an input pin changes
Returns the value of an input pin
Sets an output pin to be either high or low
Allows interrupts to happen
Prevents interrupts from happpening
Configures a pin to act either as input or output
Stops listening for interrupts on an input pin
Gives ownership of a pin back to the operating system
Waits for the value of an input pin to change
Opens an RC servo motor connected to a GPIO pin
Attaches a servo motor to a GPIO pin
You must call this function before calling write(). Note that the servo motor will only be instructed to move after the first time write() is called.
The optional parameters minPulse and maxPulse control the minimum and maximum pulse width durations. The default values, identical to those of Arduino's Servo class, should be compatible with most servo motors.
Returns whether a servo motor is attached to a pin
Detatches a servo motor from a GPIO pin
Moves a servo motor to a given orientation