0x4040 mcufriend 2.8 inch tft lcd site https forum.arduino.cc manufacturer
I have managed to confirm the ID of the LCD driver for my Ebay, mcufriend.com touch screen. This was found by reading it from D3h and it confirmed this was an ILI9341 ICD driver chip. I have some code that bit bashes it out on an UNO board and displays it serially. I make no guarantee for it so only use it under your own risk but it may help try to find and read the ID of your board (e.g. your can change to specific register to read).
I have bought "MCUFRIEND" 2.8 tft touch lcd and controller printed on it shows "ILI9338". Example given in this library are not working except for the basic one and it don"t even work with touch examples. After searching on google found out that "MCUFRIEND_kbv" library for debug. When i run "diagnose_tft_support" it shows following output. Also added "Read reg" after first output. Please Help !!!
My test program ran fine with these libraries on my earlier mcufriend with controller chip HX8357D. Alphas, graphics and rotation worked fine, but the colours were inverted.
I made good progress after lifting some code off a number pad demo and changing drivers to reflect the AdaLGDP4535TFTLCD.h lib. Then getting the pins to align with the Map, it works pretty good. One last bit of coaching requested.
Hi. I also got this display (off ebay). I found a contact email on the mcufriend.com website, so i emailed them, and after a few exchanges i was sent a sketch called _8347uno that makes the screen go black instead of white. i count this as some progress, however im not very knowledgeable on how the code works. perhaps somebody can use it as a basis to make a library to make these work?
i looked up 8347 and found there is are controllers with that number, and i tried the UTFT set up for the HX8347A controller with no luck, but im hoping someone with more knowledge than me can figure it out.
I test graphictest.ino from Adafruit_GFX library with tft.begin(0x9341), it works but backlight noisy with some vertical lines, cannot full black color.
I am using Arduino IDE 1.8.19 (latest as of writing) and I installed the original MCUFRIEND_kbv and Adafruit_GFX libraries through the library manager.
Using the (old) provided libraries from the seller does work. These libraries seem to use a hacked version of an old MCUFRIEND library so I really do not prefer to use them.
I tried using the original MCUFRIEND_kbv library unaltered except for the pin definitions in LCD_ID_readreg.ino and when that was not working I tried using:
Next I also tried using jumper wiring to wire all lines from the display to the MEGA as original wiring and I put back the original MCUFRIEND pinout. This also did not work with or without the additional use special defines.
When I use the library (old) that I got from the seller the display works and I can run the graphictest.ino from that. But I really prefer not to use that as it is old and not maintained. I really would like to use the MCUFRIEND_kbv original library as it is maintained, has more examples and I think might run quicker. I read something about rotating being done in a strange way in the hacked library.
Ultimate goal is to use these boards to make a logging module for my solar panels power converter. logging serial message from the PV converter and being able to display PV solar graphs on the display while saving the data to the SD card on the display. For this I would really much like to use the original maintained MCUFRIEND library as it seems to be well made and well maintained and not the hacked old non-maintained library from the seller.