Lines Matching defs:Gpio
6 '''Chrome OS device GPIO library
8 This module provides a convenient way to detect, setup, and access to GPIO
11 See help(Gpio) for more information.
17 class Gpio(object):
19 Utility to access GPIO values.
22 gpio = Gpio()
24 gpio.setup()
25 print gpio.read(gpio.DEVELOPER_SWITCH_CURRENT)
27 print "gpio failed"
30 # GPIO property names (by "crossystem"):
60 '''Configures system for processing GPIO.
71 '''Reads a GPIO property value.
79 debug_title = "Gpio.read('%s'): " % name
114 gpio = Gpio()
116 gpio.setup()
118 gpio.read(gpio.DEVELOPER_SWITCH_CURRENT))
120 print "GPIO failed. %s" % e