mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Add source/values docs page, close #448
This commit is contained in:
7
docs/examples/led_button_loop.py
Normal file
7
docs/examples/led_button_loop.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from gpiozero import LED, Button
|
||||
|
||||
led = LED(17)
|
||||
button = Button(2)
|
||||
|
||||
while True:
|
||||
led.value = button.value
|
||||
Reference in New Issue
Block a user