digital hace 8 años
padre
commit
5b74278754
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      pin/__init__.py

+ 1 - 0
pin/__init__.py

@@ -39,6 +39,7 @@ class FakeGPIO(object):
 
 try:
     import RPi.GPIO as gpio
+    gpio.setmode(gpio.BCM)
 except:
     # print("Using FakeGPIO because RPi.GPIO was not found")
     gpio = FakeGPIO()