Hey there,
I have been struggling to solve an issue that I think is both unique and not unique at the same time. I have a Mega 2560 with an ELEGOO 2.8" TFT LCD (linked below), and it works perfectly with the MCUFRIEND library. However, I would like to horizontally mirror the display, as if you were looking at it through a mirror.
I want to accomplish this because I am trying to build a HUD for my car, but I want to use this LCD instead of 7 segment HUD display. I have seen many forum posts of other people trying to get their display to be unmirrored, but I had no luck trying to follow the same steps in reverse.
I also created a custom GFX font with every character backwards, and that worked great until I needed text with background color, (WHITE,BLACK) for example. I found out the long way that GFX fonts do not display the background color, only the system font
I was hoping someone who is more knowledgeable than me could chime in with a solution to help me get my display mirrored. I am also willing to buy a new display if it's not possible with this one, although I feel it should be possible with some change in the library code.
I ran the LCD_ID_readreg example sketch and it returned these results;
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 70 Panel Control
reg(0x00D0) 00 00 00 Power Control
reg(0x00D2) 00 00 00 02 02 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
I'm not sure why the ID comes back as all 0's, as for the graphicstest_kbv sketch displays the ID as ILI9341 (0x9341).
This is the screen I am using, it is an ELEGOO 2.8" TFT LCD;
If anyone could help me out it would be much appreciated!!