bathroom-timer/blink.py

14 lines
154 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python3
from gpiozero import LED
from time import sleep
led = LED(25)
while True:
led.on()
sleep(1)
led.off()
sleep(1)