forked from xiaozhi/xiaozhi-esp32
feat: Use BOOT button to enter audio testing state when Wi-Fi configuring
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -220,6 +220,7 @@ void GpioLed::OnStateChanged() {
|
||||
TurnOn();
|
||||
break;
|
||||
case kDeviceStateListening:
|
||||
case kDeviceStateAudioTesting:
|
||||
if (app.IsVoiceDetected()) {
|
||||
SetBrightness(HIGH_BRIGHTNESS);
|
||||
} else {
|
||||
|
||||
@@ -136,6 +136,7 @@ void SingleLed::OnStateChanged() {
|
||||
TurnOn();
|
||||
break;
|
||||
case kDeviceStateListening:
|
||||
case kDeviceStateAudioTesting:
|
||||
if (app.IsVoiceDetected()) {
|
||||
SetColor(HIGH_BRIGHTNESS, 0, 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user