Change display orientation on ILI9325
EDIT: To all reading, the OP may need more help with the datasheet than I can give below, it's a good starting point, but I have no time to read up and down the sheet to see what's going on. See comments on this answer if you think you can help.



Original Post:



You set register 3 to the value: 0x1030 in your code. Now see the Adafruit datasheet of your chipset (I'm not the biggest Ada supporter in existence, but it's the only link I could find that's close to proper English):

Adafruit ILI9325 Chip Datas

On Page 55 of 107, it shows a table. You want AM = 1 and ID[0:1] are your choice depending on whether you want up/down and mirrored/unmirrored.

Now scroll up to page 54, to show the register layout:

{...}{D7} {D6} {D5} {D4} {D3} {D2} {D1} {D0}
{...}{ORG}{0}  {ID1}{ID0}{AM} {0}  {0}  {0}


As you can see, your last 0 writes a 0 to AM, you want the last cipher to be 8 for vertical, thus: 0x10?8, where ? is your choice based on the directions in the table on page 55.