help with TFT

Hi – would like some help with a 2.8” LCD Shield HX8347, have been using MCUFRIEND library. When I upload any of the examples all I get this the error not able to upload to board, the only one I get to upload is the LCD_ID_readreg file and these are the results :
reg(0x0000) 95 95 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00 Manufacturer ID
reg(0x0009) 3F 3F 3F 3F 3F Status Register
reg(0x000A) 00 00 Get Power Mode
reg(0x000C) 01 01 Get Pixel Format
reg(0x0061) 00 00 RDID1 HX8347-G
reg(0x0062) 00 00 RDID2 HX8347-G
reg(0x0063) 00 00 RDID3 HX8347-G
reg(0x0064) 00 00 RDID1 HX8347-A
reg(0x0065) 00 00 RDID2 HX8347-A
reg(0x0066) 00 00 RDID3 HX8347-A
reg(0x0067) 00 00 RDID Himax HX8347-A
reg(0x0070) 00 00 Panel Himax HX8347-A
reg(0x00A1) 00 00 00 00 00 RD_DDB SSD1963
reg(0x00B0) 00 00 RGB Interface Signal Control
reg(0x00B4) 00 00 Inversion Control
reg(0x00B6) 00 00 00 00 00 Display Control
reg(0x00B7) 00 00 Entry Mode Set
reg(0x00BF) 00 00 00 00 00 00 ILI9481, HX8357-B
reg(0x00C0) 00 00 00 00 00 00 00 00 00 Panel Control
reg(0x00C8) 00 00 00 00 00 00 00 00 00 00 00 00 00 GAMMA
reg(0x00CC) 00 00 Panel Control
reg(0x00D0) 00 00 00 Power Control
reg(0x00D2) 00 00 00 00 00 NVM Read
reg(0x00D3) 00 00 00 00 ILI9341, ILI9488
reg(0x00D4) 00 00 00 00 Novatek ID
reg(0x00DA) 00 00 RDID1
reg(0x00DB) 00 00 RDID2
reg(0x00DC) 00 00 RDID3
reg(0x00E0) 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 GAMMA-P
reg(0x00E1) 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 GAMMA-N
reg(0x00EF) 14 14 14 14 14 14 ILI9327
reg(0x00F2) 08 08 08 08 08 08 08 08 08 08 08 08 Adjust Control 2
reg(0x00F6) 00 00 00 00 Interface Control
Have tried uncommenting the drivers in the .cpp file, and am using a mega \ uno with the same results.
Many thanks

1 Like

From C:\Users...\Documents\Arduino\libraries\Mcufriend_kbv\extras\mcufriend_how_to.txt

10. It currently supports UNO shields with "mcufriend.com" pcbs with controllers:
...
HX8347-I 240x320  ID=0x9595 #define SUPPORT_8347D
...
Most of these controllers are #define SUPPORT_xxxx by default.
You can save Flash memory on a Uno by commenting out the macro(s) in MCUFRIEND_kbv.cpp

Edit MCUFRIEND_kbv.cpp to enable #define SUPPORT_8347D

Plug the Shield into Uno, Mega, Zero, ...
Run all the examples.

David.

Hi there - Many thanks for you help, added #define SUPPORT_8347D, but no change, would not upload any of the example expect LCD_ID_readreg and LCD_ID_readnew ....

sthomas229:
Hi there - Many thanks for you help, added#define SUPPORT_8347D, but no change, would not upload any of the example expect LCD_ID_readreg and LCD_ID_readnew ....

I don't believe you.

Run diagnose_TFT_support.ino from the examples.

Copy-paste the Serial Terminal to your message here.

David.

1 Like

Hi David - thanks for your help - no joy with diagnose_TFT_support got the following error message;
C:\Users\gu284\OneDrive\Documents\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GrayOLED.h:30:10: fatal error: Adafruit_I2CDevice.h: No such file or directory
#include <Adafruit_I2CDevice.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Mega or Mega 2560.
many thanks

Just checked that I have got the Adafruit_GFX_Library installed and I have..

1 Like

Run the IDE Library Manager.

Make sure that your libraries are up to date. Adafruit often updates files.
Those files are not actually needed by MCUFRIEND_kbv but Adafruit installs them anyway.

David.

Great - got it working many thanks, re-installed Adafruit_GFX_Library and got it working.

Thank you.

1 Like

Thanks for yor help, where does one buy you the vitural pint ?