Backward texts issue

Hello,

What MCU/Processor/Board and compiler are you using?

MCU: ESP32
Screen: ili9341
CMake and Ninja

What is the issue?

What do you want to achieve?

Not mirrored texts

What have you tried so far?

I tried the portrait, portrait inverted, landscape, landscape inverted, but they did not work.

Code to reproduce

sample project

Thanks

check MADCTL register in ili9341.
u need to invert x axis also seems colors are wrong.
madctl register contains RGB BGR setting.
so check pdf. here is function call that u need to use (or simular one ) to fix ur problem.


void MACONTROL(bool MY,bool MX,bool MV,bool ML,bool BGR,bool MH)
{
volatile uint8_t data=(MY<<7) | (MX<<6) | (MV<<5) |(ML<<4)|(BGR<<3)|(MH<<2);
writecommand(ILI9341_MADCTL);
writedata(data);
}
1 Like