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