digital 8 anni fa
parent
commit
5b74278754
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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()