Hi folks,
I know, there are a lot of forum entries out there, that deal with problems of connecting touch displays to an ESP32. I propably read them all for deveral days now without success for my own projects. So I really need some help.
I already built a machine to cut some crimp contacts for crimping analysis. It works well and I used an ESP32-S3 DevKit as controller board together with a 4" Touch display with ST7796 controller (320x480 pixel) and the TFT_eSPI library. I built a software framework to reuse in other projects, which I did. Everything worked fine for a while. But suddenly, I ran into issues I am not able to solve. I am looking for a solution for several days now without any success. So here's what I did so far.
I use the same circuit I had success with in two other projects. I made a pcb and I even tried to put everything on a breadboard. The software works somehow, because I see some content on the screen. But the display orientation is not as expected. I always see about 2 thirds of my content. I am able to rotate the orientation. But when I use the landscape mode values, I always get portrait orientations and vice versa. I never see the whole screen. It is always positioned with an x-offset of about 1/3rd of the display in Landscape mode or with an y-offset of 1/3rd in portrait mode.
I tried to use different settings in the user file I had written for this setup. It didn't change something. I didn't expect much here, because it worked before.
I tried different displays and different Dev Modules without any changes.
I recompiled my old project codes that are running in different projects successfully but always get the same behaviour.
The only thing that is different now are the libraries. At some point, I updated them and it seems, that my problems are related to this fact. Otherwise I had no clue why untouched code that worked before is now making trouble. So I tried to downgrade some of the libraries to a state before June 2023 (the time of the last working Source code) but without any success.
Now I'm done and I don't know where to look for next.
I propably read the whole internet and was not able to fix this. Has anyone any idea where to look for. I am sure, there must be a very simple fix. This is really frustrating...
So thanks in advance
Greetings
Christian