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