mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
Update gpiocontrol.py
This commit is contained in:
parent
f6523929b2
commit
bd3e15ba57
|
|
@ -42,7 +42,7 @@ def onLoad():
|
|||
global waitTime
|
||||
|
||||
GPIOPIN = globalVars.config.getint("gpiocontrol","pin")
|
||||
waitTime = globalVars.config.getint("gpiocontrol","ontime")
|
||||
waitTime = globalVars.config.getint("gpiocontrol","triggertime")
|
||||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
GPIO.setwarnings(False)
|
||||
|
|
@ -79,7 +79,7 @@ def run(typ,freq,data):
|
|||
if configHandler.checkConfig("gpiocontrol"): #read and debug the config (let empty if no config used)
|
||||
|
||||
logging.debug(globalVars.config.get("gpiocontrol", "pin"))
|
||||
logging.debug(globalVars.config.get("gpiocontrol", "ontime"))
|
||||
logging.debug(globalVars.config.get("gpiocontrol", "triggertime"))
|
||||
|
||||
########## User Plugin CODE ##########
|
||||
if typ == "FMS":
|
||||
|
|
|
|||
Loading…
Reference in a new issue