feat: Use BOOT button to enter audio testing state when Wi-Fi configuring

This commit is contained in:
Terrence committed 2025-06-13 19:57:07 +08:00
1 parent dfad6a5b2c
commit bf125446b3
5 files changed
+62 -1

No files matched your search

+2 -1
View File
@@ -205,7 +205,8 @@ void CircularStrip::OnStateChanged() {
SetAllColor(color);
break;
}
case kDeviceStateListening: {
case kDeviceStateListening:
case kDeviceStateAudioTesting: {
StripColor color = { default_brightness_, low_brightness_, low_brightness_ };
SetAllColor(color);
break;
+1
View File
@@ -220,6 +220,7 @@ void GpioLed::OnStateChanged() {
TurnOn();
break;
case kDeviceStateListening:
case kDeviceStateAudioTesting:
if (app.IsVoiceDetected()) {
SetBrightness(HIGH_BRIGHTNESS);
} else {
+1
View File
@@ -136,6 +136,7 @@ void SingleLed::OnStateChanged() {
TurnOn();
break;
case kDeviceStateListening:
case kDeviceStateAudioTesting:
if (app.IsVoiceDetected()) {
SetColor(HIGH_BRIGHTNESS, 0, 0);
} else {