lager.gpio
Module Contents
Attributes
|
- lager.gpio.LAGER_HOST
- class lager.gpio.GPIO(name, pin)
Class for managing access to GPIO lines
- property name
- property pin
- __str__()
Return str(self).
- input()
Read the value for a GPIO Net whose direction has been set to INput
level = my_gpio_net.input()
- output(level)
Write a value to a GPIO Net whose direction has been set to OUTput
my_gpio_net.output(Level.HIGH) time.sleep(1) my_gpio_net.output(Leve.LOW)
- set(mode)
Set the direction of the GPIO net to either INput or OUTput
my_gpio_net.set(GPIO.Mode.OUT)
my_other_gpio_net.set(GPIO.Mode.IN)