Skip to main content
lchac.1
Visitor II
March 14, 2023
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.

  • March 14, 2023
  • 1 reply
  • 693 views

..

This topic has been closed for replies.

1 reply

Osman SOYKURT
Technical Moderator
March 14, 2023

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

Osman SOYKURTST Software Developer | TouchGFX