Ver Fonte

minor fix

digital há 8 anos atrás
pai
commit
5b74278754
1 ficheiros alterados com 1 adições e 0 exclusões
  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()