You have to snip the A4 pin from the Shield (LCD_RST). And solder a 10k resistor from LCD_RST to 5V e.g. solder the top of the A4 pin that is still left.
Then you can access the SDA, SCL sockets safely.
Call tft.begin(ID) before Wire.begin()
I have answered this many times. Google "Mcufriend I2C"
Hello David
Unfortunately I didn't any reply from Banggood on my technical question.
In the mean time I was not happy with the quality of the displays and bought some new displays locally.
Link to the product : 2.4 inch TFT Display Shield - 240*320 pixels - Met touchscreen - 2.4TFTTOUCHSHIELD
The display identifies as Id ID = 0xE300
Running readreg provides
Read Registers on MCUFRIEND UNO shield
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)
reg(0x0000) 00 00 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00 Manufacturer ID
reg(0x0009) 00 00 61 00 00 Status Register
reg(0x000A) 00 08 Get Power Mode
reg(0x000C) 00 06 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 02 Inversion Control
reg(0x00B6) 00 0A 82 27 04 Display Control
reg(0x00B7) 00 06 Entry Mode Set
reg(0x00BF) 00 00 00 00 00 00 ILI9481, HX8357-B
reg(0x00C0) 00 21 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 72 Panel Control
reg(0x00D0) 00 00 00 Power Control
reg(0x00D2) 00 00 00 03 03 NVM Read
reg(0x00D3) 00 00 93 41 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) 00 0F 16 14 0A 0D 06 43 75 33 06 0E 00 0C 09 08 GAMMA-P
reg(0x00E1) 00 08 2B 2D 04 10 04 3E 24 4E 04 0F 0E 35 38 0F GAMMA-N
reg(0x00EF) 00 03 80 02 02 02 ILI9327
reg(0x00F2) 00 02 02 02 02 02 02 02 02 02 02 02 Adjust Control 2
reg(0x00F6) 00 01 00 00 Interface Control
When running graphicstest I see the following
- Red and Blue are swapped
- The screen is mirrored over the short access.
The supplier provides instructions on how to alter MCUFRIEND library to get screen to work.
In short he suggest the following :
identifier = 0x9341;
With this identifier the graphicstest looks correct.
Is this screen simply misidentified by a bug, or do you think something else is wrong?
If you have an E300 display, apply the edits from #3
reg(0x0004) 00 E3 00 00 Manufacturer ID
...
reg(0x00D3) 00 00 00 00 ILI9341, ILI9488
If you have an 9341 display
reg(0x0004) 00 00 00 00 Manufacturer ID
...
reg(0x00D3) 00 00 93 41 ILI9341, ILI9488
After the edits from #3 both 0xE300 and 0x9341 IDs should be detected by tft.readID()
Both displays should run graphictest_kbv out of the box 100% i.e. correct colours, directions, ...
I suspect that photos may not look perfect on the 0xE300. Which is why I would like a datasheet.
David.