فهرست منبع

修改打断模块引脚

xuxinyi 3 هفته پیش
والد
کامیت
e884c973dd
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      main/application.cc
  2. 2 2
      main/boards/esp32s3-korvo2-v3/config.h

+ 2 - 2
main/application.cc

@@ -401,7 +401,7 @@ void Application::Start() {
         return higher_priority_task_woken == pdTRUE;
     });
     codec->Start();
-    codec->SetOutputVolume(100);
+    codec->SetOutputVolume(75);
     // //此处是电量测量的代码
     // int batteryLevel;
     // bool isCharging;
@@ -538,7 +538,7 @@ void Application::Start() {
         vTaskDelete(NULL);
     }, "check_new_version", 4096 * 2, this, 2, nullptr);
     SetDeviceState(kDeviceStateIdle);
-    codec->SetOutputVolume(100);
+    codec->SetOutputVolume(75);
     PlaySound(Lang::Sounds::P3_LINKWIFI);
 
 #if CONFIG_USE_AUDIO_PROCESSOR

+ 2 - 2
main/boards/esp32s3-korvo2-v3/config.h

@@ -23,8 +23,8 @@
 
 #define BUILTIN_LED_GPIO        GPIO_NUM_NC
 #define BOOT_BUTTON_GPIO        GPIO_NUM_5
-#define ASR_BUTTON_GPIO       GPIO_NUM_40
-#define ASR_TIAN_WEN_BUTTON_GPIO       GPIO_NUM_38
+#define ASR_BUTTON_GPIO       GPIO_NUM_21
+#define ASR_TIAN_WEN_BUTTON_GPIO       GPIO_NUM_15
 
 #define VOLUME_UP_BUTTON_GPIO   GPIO_NUM_NC
 #define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_NC