cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh GUI and interact with peripheral

jean_bonneau
Associate II

Hi fellas,

(I am using a Riverdi touchscreen-> i have a dual core stm32) (i am working on the GUI part with TouchGFX Designer)

Basically I am wondering if there is a way to execute a function in ScreenView.cpp, perhaps call a function in the presenter to interact with a peripheral, and force manually a refresh of the screen.

I tried using presenter->foo() expecting TouchGFX to be a good boy and do a detour by the refreshing part before actually going in the function of the presenter, but it is apparently not. Ngl i haven't tried calling a function in the Model as i expect the same result.

My question is therefore: Am i forced to make my application dual-core with one core handling the refreshing of the GUI and the other handling interactions with the peripheral?

If not, what other ways are there? I tried manually calling TouchGFX::tick though i am convined it is not a good idea as ScreenView is already in the thread fathered by TouchGFX::tick, and if that's the solution i don't know what file to include in the ScreenView.cpp

Thanks for your answers

0 REPLIES 0