浏览代码

add radio button

Karl Hudgell 6 月之前
父节点
当前提交
a43be8aaac
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      buttons.py

+ 1 - 0
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)