mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
8 lines
109 B
Python
8 lines
109 B
Python
from gpiozero import LED, Button
|
|
|
|
led = LED(17)
|
|
button = Button(2)
|
|
|
|
while True:
|
|
led.value = button.value
|