cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX update widget data from main() non-RTOS

SJR1
Visitor

I've created a TouchGFX project for an LTDC LCD with a H7a3 Nucleo board.  The project includes a static graph displayed on the LCD.  The project will compile, run and properly display the TouchGFX designed screen with the static graph. 

Next step would be to change the data on the graph from my custom code during run-time - possibly triggered from the button on the Nucleo.  However, I find a dead-end since main.c only has: #include "app_touchgfx.h" and cannot see a path to Model, Presenter or View classes.  I can't understand how any of the generated touchgfx code is referenced back to main.c. 

How do I call graph1.addpoint() from main()?  Indirectly or directly.  Or, maybe call from model:tick()??

How is the touchGFX code able to compile without references to all the TouchGFX code from main.c?  More importantly, how to access the screen objects in code without any references to it from user code (main.c)??

Are there any TouchGFX examples which update widget data from within the user code that do NOT use RTOS?  I've seen mentions of implementing the "OS Wrappers" when not using RTOS, but how?  Seamless?? 

0 REPLIES 0