How to make text rotation in 2.8" Touch LCD

Hello !

I want to make text rotation in 2.8" touch lcd. I bought 2.8" touch lcd from http://linksprite.com/wiki/index.php5?title=Touch_LCD_Shield . I got some library from web site but it has rotation function. I saw some people from http://forums.adafruit.com/viewtopic.php?f=31&t=30219 use adafruit library he can rotate text. Have any way for to do that (rotate text for my touch lcd)

I'm so sorry about my english is not well. XD

The library, which is attached here: http://forum.arduino.cc/index.php?topic=222327.0, should support your display and has text rotation (90 degree).

Oliver

olikraus:
The library, which is attached here: http://forum.arduino.cc/index.php?topic=222327.0, should support your display and has text rotation (90 degree).

Oliver

Thank you . Should I config pin for Mega 2560 ?

//Ucglib8BitPortD ucg(ucg_dev_ili9325_18x240x320_itdb02, ucg_ext_ili9325_18, /* wr= / 18 , / cd= / 19 , / cs= / 17, / reset= / 16 );
//Ucglib8Bit ucg(ucg_dev_ili9325_18x240x320_itdb02, ucg_ext_ili9325_18, 0, 1, 2, 3, 4, 5, 6, 7, /
wr= / 18 , / cd= / 19 , / cs= / 17, / reset= */ 16 );

//Ucglib_ST7735_18x128x160_SWSPI ucg(/scl=/ 13, /sda=/ 11, /cd=/ 9 , /cs=/ 10, /reset=/ 8);
//Ucglib_ST7735_18x128x160_HWSPI ucg(/cd=/ 9 , /cs=/ 10, /reset=/ 8);

//Ucglib_ILI9341_18x240x320_SWSPI ucg(/scl=/ 7, /sda=/ 6, /cd=/ 5 , /cs=/ 3, /reset=/ 4);
//Ucglib_ILI9341_18x240x320_SWSPI ucg(/scl=/ 13, /sda=/ 11, /cd=/ 9 , /cs=/ 10, /reset=/ 8);
//Ucglib_ILI9341_18x240x320_HWSPI ucg(/cd=/ 9 , /cs=/ 10, /reset=/ 8);
//Ucglib_ILI9341_18x240x320_SWSPI ucg(/scl=/ 4, /sda=/ 3, /cd=/ 6 , /cs=/ 7, /reset=/ 5); /* Elec Freaks Shield */
//Ucglib_ST7735_18x128x160_SWSPI ucg(/scl=/ 13, /sda=/ 11, /cd=/ 9 , /cs=/ 10, /reset=/ 8);

//Ucglib_SSD1351_18x128x128_SWSPI ucg(/scl=/ 13, /sda=/ 11, /cd=/ 9 , /cs=/ 10, /reset=/ 8);
//Ucglib_SSD1351_18x128x128_HWSPI ucg(/cd=/ 9 , /cs=/ 10, /reset=/ 8);

//Ucglib_PCF8833_16x132x132_SWSPI ucg(/scl=/ 13, /sda=/ 11, /cs=/ 9, /reset=/ 8); /* linksprite board /
//Ucglib_PCF8833_16x132x132_HWSPI ucg(/cs=/ 9, /reset=/ 8); /
linksprite board */

You sould uncomment this constructor:

Ucglib_ILI9341_18x240x320_SWSPI ucg(/*scl=*/ 7, /*sda=*/ 6, /*cd=*/ 5 , /*cs=*/ 3, /*reset=*/ 4);

And apply correct pin numbers (depending on your shield).

See also this page: http://code.google.com/p/ucglib/wiki/connectili9341

Oliver

olikraus: You sould uncomment this constructor:

Ucglib_ILI9341_18x240x320_SWSPI ucg(/*scl=*/ 7, /*sda=*/ 6, /*cd=*/ 5 , /*cs=*/ 3, /*reset=*/ 4);

And apply correct pin numbers (depending on your shield).

See also this page: http://code.google.com/p/ucglib/wiki/connectili9341

Oliver

Thanks again, it's work as below

Ucglib_ILI9341_18x240x320_SWSPI ucg(/*scl=*/ 52, /*sda=*/ 51, /*cd=*/ 6 , /*cs=*/ 5, /*reset=*/ 4);