From 58bd7ed27ebf5781fa0dd74382e941baebce8231 Mon Sep 17 00:00:00 2001 From: LilyGO <31160602+LilyGO@users.noreply.github.com> Date: Mon, 6 Jun 2022 16:56:46 +0800 Subject: [PATCH] perfect: screen display --- lib/T-0.99TFT/src/TFT_GC9D01N.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/T-0.99TFT/src/TFT_GC9D01N.cpp b/lib/T-0.99TFT/src/TFT_GC9D01N.cpp index 00bb93c..e55974c 100644 --- a/lib/T-0.99TFT/src/TFT_GC9D01N.cpp +++ b/lib/T-0.99TFT/src/TFT_GC9D01N.cpp @@ -394,13 +394,17 @@ int TFT_GC9D01N_Class::begin() ledcSetup(1, 1000, 10); ledcAttachPin(TFT_BL, 1); - ledcWrite(1, 220); + ledcWrite(1, 0); - // digitalWrite(TFT_BL, HIGH); //开启背光 delay(100); SPI.begin(TFT_SCLK, TFT_MISO, TFT_MOSI, TFT_CS); - lcd_init(); + int i = 2; + while (i--) { + lcd_init(); + delay(200); /* code */ + } + ledcWrite(1, 220);//开启背光 return 1;