def setLightOff():
"Check the time and determine if the lights need to be changed"
lightPin = 29
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
print ("Turn lights Off")
GPIO.setup(lightPin, GPIO.OUT)
GPIO.output(lightPin, GPIO.LOW)
logData("Light_Switch", "Success", "light", "Off", '')
评论列表
文章目录