Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5151

General • Re: Raspberry pico st7789 display rotated.

$
0
0
I found that by changing three lines I could rotate the image 90 degrees clockwise like I needed:

self.write_cmd(CASET, b'\x00\x00\x00\xF0')
self.write_cmd(RASET, b'\x00\x00\x00\xF0')
self.write_cmd(MADCTL, b'\x04')

to

self.write_cmd(CASET, b'\x00\x00\x00\xEF') -> (F0 to EF)
self.write_cmd(RASET, b'\x00\x00\x00\xEF') -> (F0 to EF)
self.write_cmd(MADCTL, b'\x70') -> (04 to 70)

Thanks for your suggestions!

Statistics: Posted by Tetris911 — Fri Dec 22, 2023 9:49 pm



Viewing all articles
Browse latest Browse all 5151

Trending Articles