mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
10 lines
167 B
Python
10 lines
167 B
Python
from gpiozero import LED
|
|
from gpiozero.pins.pigpio import PiGPIOPin
|
|
from signal import pause
|
|
|
|
led = LED(PiGPIOPin(17, host='raspberrypi.local'))
|
|
|
|
led.blink()
|
|
|
|
pause()
|