Closed YanDevDe closed 4 weeks ago
Here is the code which runs under Wokwi.
https://wokwi.com/projects/405326271216619521
Which shows "Hello World" in mirrored ways, which I did not had this problem with TFT_eSPI and AdafruitGFX
hi,
please try to modify the value of cfg.offset_rotation
, by assigning a number in the 0-7 range.
Hello @tobozo
I forgot to mention, but yes, I have already played around and the result were the exactly the same as setRotation. So unfortunately it didn't fixed it.
btw the wokwi project link only compiles if the source is unmodified.
as soon as I change one line of code I get this:
sorry if I can't help you more
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It's not really fixed, but I decided to go for another display.
I notified wokwi about the editing issue, but it doesn't seem they fixed it, clicking on your link and reproducing the error is fine, but if I edit the sketch and run it again it fails with that cryptic network error
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.
Environment ( 実行環境 )
I've been converting my code from TFT_eSPI to LovyanGFX and I was able to draw contents on the display. But for some odd reason - the screen are inverted.
After carefully reading here I learned that you can actually flip the screen by using "setRotation", so I tried the value 0-7 and I got following weird result:
0 - 0deg mirrored (default) 1 - 90deg mirrored 2 - 0deg mirrored 3 - 90deg mirrored 4 - 180deg normal 5 - 270deg normal 6 - 180deg normal 7 - 270deg normal
As you can see, 0/2, 1/3, 4/6, 5/7 is the same, which is a odd behavior. Is that maybe due misconfigurations in LovyanGFX_Setup.h?
LovyanGFX_Setup.h:
I prefer to have a custom display setup script as it allows me to modify the value directly, hence "LovyanGFX_Setup" is there.
I'm using Wokwi Simulator for now (But I'm going to change display + different devkit of ESP32 soon), so the result looks like this:
As you can see, all the text and drawings are in mirrored mode. The position X starts on the right side instead of the left one.
The pins are connected:
CS 15 RST 4 DC 2 MOSI 23 SCLK 18 MISO 19 LED 33
Does anybody knows why I'm getting this weird result?
Thank you so much!