add radio button
This commit is contained in:
parent
a057225e6f
commit
a43be8aaac
@ -34,6 +34,7 @@ def button_callback_2(channel):
|
||||
def button_callback_3(channel):
|
||||
print("Button 3 pressed!")
|
||||
client = create_client()
|
||||
control_player(client, "RADIO")
|
||||
|
||||
# Add event detection for each button press
|
||||
GPIO.add_event_detect(BUTTON_PINS[0], GPIO.FALLING, callback=button_callback_1, bouncetime=200)
|
||||
|
Loading…
x
Reference in New Issue
Block a user