2023-08-18 06:43 AM
Hello guys, I have a question. I am using touchgfx. When I use the while loop in my Model.Cpp file, the application stops. It does this without entering the while loop. Can't use loops in Model.Cpp? Do you have any knowledge about this topic?
Solved! Go to Solution.
2023-09-01 05:56 AM
Hello @amorftor ,
TouchGFX uses MVP design pattern, which means it uses Model to hold or transfer data between different parts of the application or outside of the application (for instance, communicating with the board). Therefore, loops or any application logic should not be used inside the Model class.
You can read more about the TouchGFX design pattern here:
I hope this helps you
2023-09-01 05:56 AM
Hello @amorftor ,
TouchGFX uses MVP design pattern, which means it uses Model to hold or transfer data between different parts of the application or outside of the application (for instance, communicating with the board). Therefore, loops or any application logic should not be used inside the Model class.
You can read more about the TouchGFX design pattern here:
I hope this helps you