Screen Change from Code
I am trying to trigger a screen change from code. I have followed:
https://community.st.com/s/question/0D50X0000AaYMwM/how-to-implement-switchscreen-in-touchgfx
and
https://community.st.com/s/question/0D50X0000BTdnsASQR/how-can-i-change-screen-in-software
Both Q&A threads are incomplete and I haven't been able to get either of them working on my own.
I have my message queue passing messages from FreeRTOS across to touchGFX to notify of hardware button presses (no touch screen in this application). But the only way I have been able to trigger any screen changes is to define an an interaction in the Designer, then call it from the model using:
static_cast<FrontendApplication*>(Application::getInstance())->gotoScreenNameNoTransition();I would prefer to not have to create "dummy" interactions in the designer which never get used. I want to create a goto for each of my screens, then call them from my model based on state changes in the system.
I would appreciate any help you can offer.


