mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
12 lines
221 B
Python
12 lines
221 B
Python
from gpiozero import Button, LED
|
|
from gpiozero.tools import all_values
|
|
from signal import pause
|
|
|
|
button_a = Button(2)
|
|
button_b = Button(3)
|
|
led = LED(17)
|
|
|
|
led.source = all_values(button_a.values, button_b.values)
|
|
|
|
pause()
|