mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Add more advanced and remote recipes
This commit is contained in:
11
docs/examples/bluedot_led.py
Normal file
11
docs/examples/bluedot_led.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from bluedot import BlueDot
|
||||
from gpiozero import LED
|
||||
|
||||
bd = BlueDot()
|
||||
led = LED(17)
|
||||
|
||||
while True:
|
||||
bd.wait_for_press()
|
||||
led.on()
|
||||
bd.wait_for_release()
|
||||
led.off()
|
||||
Reference in New Issue
Block a user