prenticedavid / MCUFRIEND_kbv

MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields
Other
363 stars 181 forks source link

Wemos R32 + 3,5" TFT LCD Touch not working #234

Closed Koten90 closed 1 year ago

Koten90 commented 1 year ago

I started linking this 3,5" LCD TFT Touch Screen Display (https://amzn.eu/d/e8kWKfU) to an Arduino Uno Wifi Rev 2. I could load the MCUFRIENDS.kbv examples and see them on the display (at least, I know it works) but I cannot use the touch screen because of the different processor pinout (megaAVR). The aim is to show some values from variables of other Arduino IoT Cloud "Things". Since that board isn't even supported by the IoT Cloud, I immediately gave up struggling on that and I found the article where you suggest the ESP32 based Uno clone and so I bought the Wemos R32 (https://amzn.eu/d/eaNPezd). I wired the IO36-34-35 pin (analog only) with the IO15-33-32 as in photo IMG_3766.jpg - Google Drive . I could run the LCD_ID_readreg and this is the result

15:40:07.449 -> reg(0x0000) 00 00 ID: ILI9320, ILI9325, ILI9335, ... 15:40:07.449 -> reg(0x0004) 00 54 80 66 Manufacturer ID 15:40:07.449 -> reg(0x0009) 00 00 61 00 00 Status Register 15:40:07.449 -> reg(0x000A) 00 08 Get Power Mode 15:40:07.449 -> reg(0x000C) 00 66 Get Pixel Format 15:40:07.449 -> reg(0x0061) 00 00 RDID1 HX8347-G 15:40:07.449 -> reg(0x0062) 00 00 RDID2 HX8347-G 15:40:07.449 -> reg(0x0063) 00 00 RDID3 HX8347-G 15:40:07.449 -> reg(0x0064) 00 00 RDID1 HX8347-A 15:40:07.465 -> reg(0x0065) 00 00 RDID2 HX8347-A 15:40:07.465 -> reg(0x0066) 00 00 RDID3 HX8347-A 15:40:07.487 -> reg(0x0067) 00 00 RDID Himax HX8347-A 15:40:07.487 -> reg(0x0070) 00 00 Panel Himax HX8347-A 15:40:07.518 -> reg(0x00A1) 00 93 30 93 30 RD_DDB SSD1963 15:40:07.518 -> reg(0x00B0) 00 00 RGB Interface Signal Control 15:40:07.518 -> reg(0x00B4) 00 00 Inversion Control 15:40:07.550 -> reg(0x00B6) 00 02 02 3B 3B Display Control 15:40:07.550 -> reg(0x00B7) 00 06 Entry Mode Set 15:40:07.581 -> reg(0x00BF) 00 00 00 00 00 00 ILI9481, HX8357-B 15:40:07.581 -> reg(0x00C0) 00 0E 0E 0E 0E 0E 0E 0E 0E Panel Control 15:40:07.581 -> reg(0x00C8) 00 00 00 00 00 00 00 00 00 00 00 00 00 GAMMA 15:40:07.614 -> reg(0x00CC) 00 04 Panel Control 15:40:07.614 -> reg(0x00D0) 00 00 00 Power Control 15:40:07.645 -> reg(0x00D2) 00 00 00 00 00 NVM Read 15:40:07.645 -> reg(0x00D3) 00 00 94 86 ILI9341, ILI9488 15:40:07.645 -> reg(0x00D4) 00 00 00 00 Novatek ID 15:40:07.678 -> reg(0x00DA) 00 54 RDID1 15:40:07.678 -> reg(0x00DB) 00 80 RDID2 15:40:07.711 -> reg(0x00DC) 00 66 RDID3 15:40:07.711 -> reg(0x00E0) 00 00 02 34 09 07 09 0B EE 33 0D 03 0C 21 37 03 GAMMA-P 15:40:07.711 -> reg(0x00E1) 00 06 18 12 06 0F 0E 67 CE 20 07 13 0C 38 1E 0F GAMMA-N 15:40:07.743 -> reg(0x00EF) 00 80 00 10 60 40 ILI9327 15:40:07.743 -> reg(0x00F2) 00 18 A3 12 02 B2 12 FF 10 00 00 00 Adjust Control 2 15:40:07.776 -> reg(0x00F6) 00 54 80 66 Interface Control

I cannot go any further, even copy-pasting library examples. When attached to this Wemos board, the screen stayed blank white for the whole time.

I see #here @prenticedavid says that with this result the digitalWrite() style of sketch should work. That would be enough for me, but I don't know what he does mean.

I really would appreciate any help you will give me. Thanks in advance. Alessio

Koten90 commented 1 year ago

Quick update: the situation solved by itself. To exclude defective modules, I bought another Wemos and another LCD. Just trying to connect the new LCD made me find it all works correctly and I can now go on (2 days lost trying to fix something already working...)