mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Update sourcevalues docs as suggested in lurch's review
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
from gpiozero import LED, Button
|
||||
from time import sleep
|
||||
|
||||
led = LED(17)
|
||||
button = Button(2)
|
||||
|
||||
while True:
|
||||
led.value = button.value
|
||||
sleep(0.01)
|
||||
|
||||
Reference in New Issue
Block a user