Exemplo n.º 1
0
 def cleanup(self):
     GPIO.setmode(GPIO.BCM)
     GPIO.cleanup()
Exemplo n.º 2
0
 def __init__(self, ins=None, outs=None):
     GPIO.setmode(GPIO.BOARD)
     for i in ins:
         GPIO.setup(i, GPIO.IN)
     for o in outs:
         GPIO.setup(o, GPIO.OUT)