The ILI9341 display rotates the coordinates.


Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3432
Posted: 10:20pm 05 Dec 2025      

A bit of trial and error using the information from Peter and disco4now was able to swap red and blue on a normal ILI9341. However this also created the same problem you had with vertical and horizontal. Using your cure for that restored things.

Give this a try.
> poke display &H36, &H03
> cls rgb(blue)
> cls rgb(red)
> poke display hres 320
> poke display vres 240
> cls rgb(blue)
> cls rgb(red)
> poke display hres 240
> poke display vres 320
> cls rgb(blue)
> cls rgb(red)
>


PS. Poke Display &H36, &H00 returned the display to original settings.
Edited 2025-12-06 08:28 by phil99