Closed jouellnyc closed 1 year ago
I don't have an ili9342c. I took a quick look at the datasheet and it does look similar. The issues you're having are probably due to differences in the MADCTL register (memory access control). You may be able to just modify the ROTATE constants. Currently my library uses:
ROTATE = {
0: 0x88,
90: 0xE8,
180: 0x48,
270: 0x28
}
I'd really need the display to know for sure but the following values may work: <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Rotation | Hex | Binary -- | -- | -- Portrait | 0x08 | 0b0000 1000 Landscape | 0x68 | 0b0110 1000 Inverted Portrait | 0xC8 | 0b1100 1000 Inverted Landscape | 0xA8 | 0b1010 1000 Portrait Mirrored | 0x48 | 0b0100 1000 Landscape Mirrored | 0x28 | 0b0010 1000 Inverted Portrait Mirrored | 0x88 | 0b1000 1000 Inverted Landscape Mirrored | 0xE8 | 0b1110 1000
Howdy. I noticed the esp32_s3_box has an ili9342c based display:
https://github.com/espressif/esp-box/blob/master/docs/hardware_overview/esp32_s3_box/hardware_overview_for_box.md
Clearly, that is different from an ili9341 and was not intended for that usage.
But, being curious, I tried.
I can use this repo and write to the screen but it comes out as a mirror image and write down the screen instead of across. What I am uncertain of is there would be support for the ili9342c/esp32_s3_box?
I've tried other repos w/o success using the esp32_s3_box and micropyton, so figured I'd toss the Q out there.
Thanks in advance!