MCUfriend ILI9331 2.8 240x320 invert text on X coordinats

Good day. Bought display on ebay http://www.ebay.com/itm/2-8-Inch-Touch-Screen-Module-TFT-LCD-Display-with-micro-SD-Solt-For-Arduino-UNO-/321810546964?hash=item4aed674114 from mcufriend. Use with Arduino Mega 2560. When using the SWTFT library or library MCUFRIEND_kbv the graphicstest sketch runs, but the text appears from right to left. Code display 9331. It turns out that I have the origin in the upper-right corner of the screen. What needs to be changed in the library to correctly print the text? When you change the case of the "Entry Mode (R03h)" the text direction is not changed.

Hello,

Someone had a similar issue recently, maybe his solution can be applied to your display as well ?

I manipulate the Rotation by the SS, GS, ORG bits. i.e. reg(0x01) holds SS bit on a 9320.
On modern controllers, these are called MX, MY, MV and are all in one register (0x36) e.g. 9341

This means that I can use consistent logic for the directions. i.e. reg(0x03) holds the I/D bits.

Yes, you can change direction in one aspect. This would then need different logic for each aspect. Personally, I find that this does my head in.

You can choose a different strategy if you want. For example UTFT has to calculate every address differently for each aspect when plotting a single pixel.

David.

Thanks for the reply, here in this thread MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields - Displays - Arduino Forum
I found a solution to your issue