i am working on a project on my arduino mega2560. I want to show reading of the sensors on the TFT display, the problem is the text displayed on the screen is mirrored. Since i am very new to arduino i don't know how to fix the problem. I have check a few videos on youtube but nothing helped. I am using the example from the UTFT library arduino (AVR) => UTFT_DEMO_480x320
The orientation of the display is controlled by the "Set Address Mode" command (0x36) at line 42 of the ILI9481 driver.
The current value is
0x0A which is
00001010 in binary. According to the datasheet (8.2.25) bit 6 is "Column Address Order", and that is set to "Left to Right" currently.
Turning that bit on should reverse the column order for the display.
So changing those two lines of code to:
should have the desired effect.
Had this same problem with everything mirrored/backward. Not sure you're still trying, but for any others with this issue, here's how I addressed it..
If using the UTFT library from RinkyDink electronics, open up their initlcd.h file. In the section for Memory Access Control (lines 85-86 in version I have), change the write to:
Bit 0 controls vertical flip, Bit 1 controls horizontal flip.
I had the problem of a mirrored display. none of the solutions above worked. I found that the Line in the source code had the wrong driver defined. change the line in the source code (file name "UTFT_Demo_480x320" line# 32 to this: UTFT myGLCD(CTE40, 38, 39, 40, 41); The new part is 'CTE40'. This works with the ILI9486. You can find all of the different chip numbers in the file "UTFT.h'