mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
12 lines
203 B
Python
12 lines
203 B
Python
from gpiozero import LED
|
|
from gpiozero.pins.pigpio import PiGPIOPin
|
|
from time import sleep
|
|
|
|
led = LED(PiGPIOPin(17, host='192.168.1.3'))
|
|
|
|
while True:
|
|
led.on()
|
|
sleep(1)
|
|
led.off()
|
|
sleep(1)
|