Skip to main content
lchac.1
Visitor II
Mar 14, 2023 9:27 AM UTC
Question

how should I switch the touchgfx screen from Screen1 to Screen2 without any interaction. The screen switching should be based on the data I am getting from the sensor.

..

This topic has been closed for replies.

1 reply

Osman SOYKURT
ST Technical Moderator
Mar 14, 2023 12:41 PM UTC

Hello lchac.1,

You can do that with actions and interactions as described in our tutorial 5.

After getting your data from your sensor, you need to call an action that will trigger an interaction.

0693W00000aIvYUQA0.png0693W00000aIvYtQAK.png 

Screen1ViewBase::myNewAction(); // to call in code after getting your sensor data

We provide in TouchGFX Designer an example of how to use Custom Trigger Action, I also invite you to have a look at it.

/Osman

ST Software Developer | TouchGFX