esp8266-scheduler/main.py

12 lines
152 B
Python
Raw Normal View History

2019-05-20 23:17:58 +02:00
import time
enabled = True
while True:
if enabled:
pin_led.on()
time.sleep
else:
pin_led.off()
enabled = not enabled
time.sleep(1)