digital 8 жил өмнө
parent
commit
5b74278754
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  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()