Fix for gpioactor

definition of mode --> GPIO.BCM
This commit is contained in:
avollkopf 2021-02-09 18:48:45 +01:00
parent 7e156feea6
commit ba988fbbb5

View file

@ -19,6 +19,9 @@ except Exception:
patcher.start()
import RPi.GPIO as GPIO
mode = GPIO.getmode()
if (mode == None):
GPIO.setmode(GPIO.BCM)
@parameters([Property.Select(label="GPIO", options=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]), Property.Select(label="Inverted", options=["Yes", "No"],description="No: Active on high; Yes: Active on low")])
class GPIOActor(CBPiActor):