forked from xiaozhi/xiaozhi-esp32
解决部分esp32-s3-touch-lcd-3.5开机黑屏不显示的问题 (#581)
* 解决部分开机黑屏的问题 * Update esp32-s3-touch-lcd-3.5.cc --------- Co-authored-by: flyingtjy <flyingtjy@gmail.com> Co-authored-by: Xiaoxia <terrence@tenclass.com>
This commit is contained in:
@@ -251,6 +251,11 @@ public:
|
||||
InitializeAxp2101();
|
||||
InitializeSpi();
|
||||
InitializeLcdDisplay();
|
||||
// 解决部分开机黑屏的问题
|
||||
if (esp_reset_reason() == ESP_RST_POWERON) {
|
||||
fflush(stdout);
|
||||
esp_restart();
|
||||
}
|
||||
InitializeButtons();
|
||||
InitializeIot();
|
||||
GetBacklight()->RestoreBrightness();
|
||||
|
||||
Reference in New Issue
Block a user