Exemplo n.º 1
0
 def __init__(self, aPortLetter, aPinNum):
     try:
         self.__device = wrapper.gpio_open(aPortLetter, aPinNum)
     except Exception, e:
         raise AsGpioError("Can't open GPIO port "+str(aPortLetter)+\
                             " pin "+str(aPinNum)+": "+str(e))
Exemplo n.º 2
0
 def __init__(self, aGpioNum):
     try:
         self.__device = wrapper.gpio_open(aGpioNum)
     except Exception, e:
         raise AsGpioError("Can't open GPIO number "+str(aGpioNum)+": "+str(e))
Exemplo n.º 3
0
 def __init__(self, aGpioNum):
     try:
         self.__device = wrapper.gpio_open(aGpioNum)
     except Exception, e:
         raise AsGpioError("Can't open GPIO number " + str(aGpioNum) +
                           ": " + str(e))