Skip to content

Commit 0beae83

Browse files
flying1425flyingtjy78
authored
解决部分esp32-s3-touch-lcd-3.5开机黑屏不显示的问题 (#581)
* 解决部分开机黑屏的问题 * Update esp32-s3-touch-lcd-3.5.cc --------- Co-authored-by: flyingtjy <[email protected]> Co-authored-by: Xiaoxia <[email protected]>
1 parent fd62357 commit 0beae83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main/boards/esp32-s3-touch-lcd-3.5/esp32-s3-touch-lcd-3.5.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ class CustomBoard : public WifiBoard {
251251
InitializeAxp2101();
252252
InitializeSpi();
253253
InitializeLcdDisplay();
254+
// 解决部分开机黑屏的问题
255+
if (esp_reset_reason() == ESP_RST_POWERON) {
256+
fflush(stdout);
257+
esp_restart();
258+
}
254259
InitializeButtons();
255260
InitializeIot();
256261
GetBacklight()->RestoreBrightness();

0 commit comments

Comments
 (0)