A portable gpio library. Contains abstraction for mulitple GPIO libraries.
Example (flip a pin):
import portableGpio
gpio = portableGpio.create('RaspPi') # creates abstraction for GPIO.RPi
gpio.init()
pin0 = gpio.create_pin(0, portableGpio.IN)
state = pin0.get()
print state
creates a abstraction for the given libray
Constant for GPIO state in
Constant for GPIO state out
Initializes the GPIO library. Please note that this does initialization using the default paramters. Each library can define another overload of init to for example set the pin layout.
Creates a gpio pin object (digital mode, no PWM)
Returns True if the pin is high otherwise False
Sets the gpio pin state to the given state