Page 1 of 1
Display manager!
Posted: Sun Dec 14, 2025 6:36 pm
by jgu1
Hi!
I have played with one of the examble with Display manager. I have converted the display a ST7796 and the Touch to XPT2046 and the device to an ESP32 dev1. It work in simulation but I can´t compile to the target, get lot of error.
Any advice please?
Br Jorgen
Re: Display manager!
Posted: Mon Dec 15, 2025 1:54 pm
by BenR
Hi Jorgen,
Investigating for you now. The msg.txt file seems to be truncated so trying to replicate for myself.
Re: Display manager!
Posted: Mon Dec 15, 2025 2:02 pm
by BenR
The problem is caused by the XPT2046 component pin properties.
If you change $GPIO5 to $PortA.5 by clicking on the pin property and ticking the Use chip references check box then hopefully that should resolve the issue.
The $GPIO5 will work when it's used as a generic I/O pin but not currently when that is tied to a peripheral e.g. SPI.
So the XPT2046 MOSI, MISO and CLK pins will all currently need to use the chip referenced pin property types.
Here's your program adjusted so that it's now compiling correctly.
Re: Display manager!
Posted: Mon Dec 15, 2025 4:58 pm
by jgu1
Hi Ben!
I can compile now, fine, thank you, and it work. But If I rotate the display to pos.1, all the Widget rotate as they should on the display, but the XPT2046 doesn´t follow the rotation. The touch is working outside the Widget and same area as without the rotation.
Also in simulation, how can I rotate the XPT2046 in FC11. In FC10 the touch follow the rotation?
Re: Display manager!
Posted: Mon Dec 15, 2025 10:15 pm
by medelec35
Hi Jorgen.
You will need to set the Orientation within display properties to either 1 or 3.
That will set display simulation orientation.
For hardware orientation, you will need to drag display SetDisplayOrientation function to match the properties value either 1 or 3
As for the XPT2046, if that has not changed, try swapping x and y values within its properties.