Hi guys, i'm looking for a way to connect and use a parallel 8 bit display, like Mcufriend ili9341 and ESP32, but i can't find a correct library and connection specifics.
i try to use the TFT_eSPI bodmer library ( great works) with following modifies:
MCUFRIEND_kbv should work out of the box.
TFT_eSPI should work with User_Setup as described.
First off, I would verify that the Shield works with a Uno.
This involves plugging the Shield into the header sockets.
All the male pins should mate with the corresponding female sockets.
Verify that you actually have an ILI9341 controller.
Use LCD_ID_readreg sketch on the Uno.
Then connect to the ESP32 and run LCD_ID_readreg sketch (with your defines)
Hi David.. thanks a lot for your replay. Now i don't have an UNO, but i used a MEGA2560, and an ESP32 (with my pin definition) with the LCD_ID_readreg.
both board giveme the same resutl.
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)
I have no idea who makes it. I do not think it is Ilitek even if I invent "ILI9302" in the how_to file.
I have never seen a 0x9302. I do not have a datasheet. I just treat it as a generic 240x320 MIPI-style controller.
Do all the tests, colours, directions work in graphictest_kbv on the Mega2560 ?
Both I and Bodmer specify using the TTGO R32 board. I have a custom WROOM-32 module with soldered Arduino headers. The WROOM-32 is not as reliable as the proper TTGO board. I would not trust an ESP32 module with flying wires on a breadboard even if the readreg sketch "works".
the graphictest_kbv on the Mega2560 works very fine.
i used this display with :SPFD5408_Adafruit_GFX.h and SPFD5408_Adafruit_TFTLCD. it works fine too.
now i have a Wroom32 board, with male pin, and i have connected it to the display with female-female jumpwire.
i used this configuration with TFT_eSPI and an SPI ili9341 display, and it works great !!
i think the connections shouldn't create problems, becuse the SPI display in this configuration works very well..
what i can do to use this ili9302 with the Wroom32?
hi, LCD_ID_readreg sketch , with ESP32 (WROOM32), giveme the same report as the MEGA2560. it identify the ID 0x9302.
to use graphictest_kbv on the ESP32, i must to redefine the pins. i can easly redefine the control pins RST,CD,RS WR, RD, but how i can redefine the data bit D0-D7?
i'm look inside MCUFRIEND_kbv.h, and it is able to recognize my ili9302 and i think will manage it like an ili9329..
Hi David, i can't find the TTGO R3 in Europe, but if i connect a WROOM32 breakout like the TTGO R3, to the display, it must work..
buy the way, if i can, i'll do a PCB with Wroom32 with the UNO pinout, like the TTGO R3.
graphictest_kbv on MEGA2560 reported ID 0x9302.
to run the graphictest_kbv, on Wroom32 i must to redefine the pins. how i can do that?
Incidentally, you can SLOW down the ESP32 via the IDE Tools Menu. Does this make a difference? e.g. when reading the ID.
ciko2k:
Hi David.. thanks a lot for your replay. Now i don't have an UNO, but i used a MEGA2560, and an ESP32 (with my pin definition) with the LCD_ID_readreg.
both board giveme the same resutl.
reg(0x00D3) 00 00 93 02 ILI9341, ILI9488
The wiring was correct for LCD_ID_readreg i.e. as specified by Bodmer (and me)
So you simply run graphictest_kbv withou changing the wiring. Observe the ID reported on the Serial Terminal.
If it does not say 0x9302, SLOW down the clock frequency in the IDE.
As I have said repeatedly. Buy a proper TTGO R32 board from Ebay. Do the hardware mod as shown by Bodmer. Everything should work out of the box i.e. just like running the 0x9302 on a Uno, Mega, Zero, Due, Leonardo, ...
Yes, SD and Touch work. You need the hardware mod for the Touch. TouchScreen_kbv works.
If you only have a few pictures, you can use SPIFFS instead of SD.
Why did 0x9302 not work when you first started?
I suspect that Bodmer's TFT_ePar / eSPI will work now. But it might not like the ILI9341 initialisation.
Go on. Bodmer has replied to your other thread. Message #0 in that thread shows the hardware mod.
I strongly advise that you wire the display according to instructions. Then everything should work with my library and with Bodmer's library.
It does not require Sherlock Holmes to see how to change pin definitions. If you can not discover it for yourself, I suggest that you stick to the default wiring.
Wemos / TTGO R32 boards are very cheap. Just buy one. Do the hardware mod. The shield plugs straight in.
Hi David, Sorry but i can't buy a TTGO, i have to wait 30-40 days to have it, because is sold only in china.
About the pin definition, i referred to MCUFRIEND_kbv library. at the end i have found how to change them, and it works!!
About bodmer's library, i'm so sorry, but it doesn't work. i use the same connectiona and hardware like MCUFRIEND_kbv library, but nothing..
i'll wait to do a PCB with short connection like the TTGO32, and i'll retest the TFT_eSPI library.