Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.74k stars 1.07k forks source link

Wemos D1 R32 with 3.5" TFT LCD Shield #2585

Closed vgomasjaya closed 1 year ago

vgomasjaya commented 1 year ago

I have wemos d1 r32 and 3.5" TFT LCD Shield (ILI9486)... After I run Read_User_Setup, I got this

[code]
TFT_eSPI ver = 2.5.0
Processor    = ESP32
Frequency    = 240MHz
Transactions = Yes
Interface    = Parallel
Display driver = 9341
Display width  = 240
Display height = 320

TFT_CS   = GPIO 33
TFT_DC   = GPIO 15
TFT_RST  = GPIO 32
TFT_WR   = GPIO 4
TFT_RD   = GPIO 2

TFT_D0   = GPIO 12
TFT_D1   = GPIO 13
TFT_D2   = GPIO 26
TFT_D3   = GPIO 25
TFT_D4   = GPIO 17
TFT_D5   = GPIO 16
TFT_D6   = GPIO 27
TFT_D7   = GPIO 14

Font GLCD   loaded
Font 2      loaded
Font 4      loaded
Font 6      loaded
Font 7      loaded
Font 8      loaded
Smooth font enabled

I think my LCD Driver is ILI9486, but why it's written 9341?

I already wiring my Wemos D1 R32

And in User_Setup_Select.h I already try to uncomment one by one

But my LCD just get white screen and nothing happen

My shield like this image

After I run TFT_ReadWrite_Test with uncomment #include <User_Setups/Setup14_ILI9341_Parallel.h> // Setup file for the ESP32 with parallel bus TFT

The result is

 Pixel value written = 10
 Pixel value read    = 80
 ERROR                 ^^^^
 Pixel value written = 20
 Pixel value read    = 100
 ERROR                 ^^^^
 Pixel value written = 40
 Pixel value read    = 200
 ERROR                 ^^^^
 Pixel value written = 80
 Pixel value read    = 400
 ERROR                 ^^^^
 Pixel value written = 100
 Pixel value read    = 0
 ERROR                 ^^^^
 Pixel value written = 200
 Pixel value read    = 0
 ERROR                 ^^^^
 Pixel value written = 400
 Pixel value read    = 0
 ERROR                 ^^^^
 Pixel value written = 800
 Pixel value read    = 801
 ERROR                 ^^^^
 Pixel value written = 1000
 Pixel value read    = 1002
 ERROR                 ^^^^
 Pixel value written = 2000
 Pixel value read    = 2004
 ERROR                 ^^^^
 Pixel value written = 4000
 Pixel value read    = 4008
 ERROR                 ^^^^
 Pixel value written = 8000
 Pixel value read    = 8010
 ERROR                 ^^^^

But the LCD just white screen

Please help me and thank you before

Bodmer commented 1 year ago

It looks like you have not commented out this line 30.

As noted in line 28: "Only ONE line below should be uncommented"

vgomasjaya commented 1 year ago

I've uncommented it and still get white screen... but when I use mcufriend_kbv, it works without any mod... but now the problem is the touchscreen doesn't work properly

Bodmer commented 1 year ago

I asked to comment out this line 30.

NOT uncomment it!

It should look like this: //#include // Default setup is root library folder

To be clear on what you have done, post your complete User_Setup_Select.h file and the setup file you want to use as ZIP files. (Drag and drop).

Bodmer commented 1 year ago

Assumed resolved.