From a43be8aaacaf413cd1a9c449d73daa37972f8e7f Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Fri, 20 Sep 2024 20:58:48 +0100 Subject: [PATCH] add radio button --- buttons.py | 1 + 1 file changed, 1 insertion(+) diff --git a/buttons.py b/buttons.py index bb996da..45bb670 100644 --- a/buttons.py +++ b/buttons.py @@ -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)