Closed TridentTD closed 5 years ago
@TridentTD Do you mean mirroring the screen or flipping it?
@lewisxhe Yes. When TTGO-Camera-Plus is streaming image to TFT, it will look like mirroring.
@TridentTD https://github.com/lewisxhe/esp32-camera-screen/blob/8b42c7d60bfecbd7b76950c37da122741ac0571c/main/app_screen.cpp#L453 Set the direction here
setRotation(0) -> setRotation(1) -> setRotation(2) -> setRotation(3)
As I known , this funciton is only rotation , doen't make image flip by y-axis.
@TridentTD https://github.com/lewisxhe/esp32-camera-screen/blob/8b42c7d60bfecbd7b76950c37da122741ac0571c/main/app_screen.cpp#L452 Reverse display and rotation are here.
@lewisxhe
tft->invertDisplay(true) & tft->invertDisplay(false) is only invert color as the following result 's picture.
@TridentTD Oh ! Then you have to refer to the ST7789 data sheet.
@lewisxhe OK. I can flip JPG image-mirroring .
https://www.youtube.com/watch?v=h2aQZ8MXjJM
Thank you.
@TridentTD which part of the code you had to change for image mirroring, can you share for the benefit of others?
Request display camera-streaming on TTGO-Camera-Plus's TFT as mirror image/reflected image = flip right to left , left to right.
(Not for image-capturing, for displaying on TFT )