We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4382fa commit ff28586Copy full SHA for ff28586
main/boards/kevin-box-2/kevin_box_board.cc
@@ -118,8 +118,15 @@ class KevinBoxBoard : public Ml307Board {
118
}
119
120
void InitializeButtons() {
121
- boot_button_.OnClick([this]() {
122
- Application::GetInstance().ToggleChatState();
+ // 测试按住说话
+ // boot_button_.OnClick([this]() {
123
+ // Application::GetInstance().ToggleChatState();
124
+ // });
125
+ boot_button_.OnPressDown([this]() {
126
+ Application::GetInstance().StartListening();
127
+ });
128
+ boot_button_.OnPressUp([this]() {
129
+ Application::GetInstance().StopListening();
130
});
131
132
volume_up_button_.OnClick([this]() {
0 commit comments