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)