I am having trouble figuring out a way to mirror a string, and have it display on a TFT using the UTFT library. For example, I would want "Hello World!" to display as "!blɿoW ollɘH" . The reason for this is to have the string show properly on a mirror.
I don't think that it's feasible unless I make mirrored fonts for each of the ASCII characters, as I've tried copying a mirrored string from website and printed it to the TFT; and it didn't show properly(funky looking characters showed on TFT instead). Any ideas?
It's possible. I dont have that display, but if you look at the datasheet of your display's controller, at page 61 you will see that you can control the directions of the address counter by changing bits 4 and 5 of the Entry Mode register. This can be achieved by changing the init code for your display in the UTFT library.
Try to modify line 4 of file UTFT/tft_drivers/ili9225/initlcd.h :
What I did was change line number 2 in the file from:
LCD_Write_COM_DATA(0x01,0x001c);
to
LCD_Write_COM_DATA(0x01,0x011c);
This caused the string to mirror as well as flip it by 180 degrees. The UTFT library allows one to rotate strings so I flipped it back, and it looks good!.