Mirror screen output for LCD-Projector use #2201
Replies: 1 comment
-
Good solution! There is a software approach which I will describe for completeness. The MV, MX and MY bits are part of a control register (MADCTL) that also controls things like the RGB or GRB colour order for the pixels. Some displays also have an MH bit. Typical allocations for the bits are in the display xxx_defines.h file. The bit allocations for the ST7789 are:
These bits are manipulated to implement rotations for setRotation(...) in the xxx_Rotation.h file for each display type. Example here. Lines like this one set (or do not set) these mirror bits. So it is a case of deciding the rotation to be used and changing the rotation code. Or writing to the register in the sketch with the appropriate bits set or cleared. This will require some experimentation to get it right. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have build a Projector based on the T-QT ESP32-S3 dev module with a 0.85" LCD https://github.com/Xinyuan-LilyGO/T-QT . The driver is a GC9107 DataSheet which is compatible with the implemented ST7789. The Display works great with the TFT_eSPI, but because of the light projection through the LCD the actual output of the Projector ist mirrored. Normal output of the LCD is correct. Is there a way to mirror the actual output? I´m happy for any help :)
EDIT:
carefully reading the DataSheet for the GC9107 there is a Frame Data Write Direction Definition were X-invert can be defined. The Question is now how I can use this Definition for my need and where I have to define this. Initialisation of the ST7789 Driver?
EDIT2:
I rethought the Problem and just installed the lcd in reverse which solved the problem.
Beta Was this translation helpful? Give feedback.
All reactions