add radio button

This commit is contained in:
Karl Hudgell 2024-09-20 20:58:48 +01:00
parent a057225e6f
commit a43be8aaac

View File

@ -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)