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!
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