mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Add Pi Zero OTG, sense hat examples and more docs
This commit is contained in:
9
docs/examples/pi_zero_remote.py
Normal file
9
docs/examples/pi_zero_remote.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from gpiozero import LED
|
||||
from gpiozero.pins.pigpio import PiGPIOPin
|
||||
from signal import pause
|
||||
|
||||
led = LED(PiGPIOPin(17, host='raspberrypi.local'))
|
||||
|
||||
led.blink()
|
||||
|
||||
pause()
|
||||
Reference in New Issue
Block a user