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

  • 1
    Can you please provide a link to the library you used (for example to the corresponding github page)? I looked at the UTFT library, that I can find in my library manager, but that does not have any 480x320 demo, so I suspect, that you are using a different library. Also please show your code – chrisl Aug 7 '20 at 12:28

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.

  • i have tried this but still no luck its the same – newbie Aug 7 '20 at 13:23
  • There should be a change, even if it's a wrong change. So either the IDE caching the compiled code and not realizing that there's a change it needs to recompile for (probably, given the nature of that library), or it's not using the ILI9491 driver. – Majenko Aug 7 '20 at 13:25
  • i have made changes as you suggested, also restarted the IDE i dont know why it isn't detecting any change, is there anything that i am missing? – newbie Aug 7 '20 at 13:33
  • Are you sure you changed it in the right file? There's lots of files all named the same in that library. – Majenko Aug 7 '20 at 13:37
  • 1
    0x4A works, now the text is not mirrored Thanks a lot. Can you please update your answer above and change 0x08 to 0x4A so that i can mark it answered. – newbie Aug 7 '20 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.