Display manager!

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jgu1
Posts: 882
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 767 times
Been thanked: 189 times

Flowcode v11 Display manager!

Post 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
Attachments
Touch screen control_selv_ESP.fcfx
(41.92 KiB) Downloaded 5 times
Touch screen control_selv_ESP.msg.txt
(1.22 KiB) Downloaded 7 times

BenR
Matrix Staff
Posts: 2032
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 539 times
Been thanked: 722 times

Re: Display manager!

Post by BenR »

Hi Jorgen,

Investigating for you now. The msg.txt file seems to be truncated so trying to replicate for myself.

BenR
Matrix Staff
Posts: 2032
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 539 times
Been thanked: 722 times

Re: Display manager!

Post 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.
Touch screen control_selv_ESP.fcfx
(41.94 KiB) Downloaded 6 times

jgu1
Posts: 882
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 767 times
Been thanked: 189 times

Flowcode v11 Re: Display manager!

Post 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?
Attachments
Touch screen control_selv_ESP.fcfx
(41.93 KiB) Downloaded 3 times

Post Reply