cancel
Showing results for 
Search instead for 
Did you mean: 

Same property on multiple screens

kweisi50
Associate II

Hi All,

I would like to have button with a text label for instance on different screens which represent voltage say. On the screen there might be a slider and this can change the value of voltage text. Also, present in hardware is a rotary dial this can also change the voltage voltage text on the screen. Changes to the voltage property are relayed back and forth via the middleware. Different screens need access to voltage control and therefore the voltage property. How does one handle this TouchGFX?

Thanks in advance.

Mike Zomo

2 REPLIES 2
Romain DIELEMAN
ST Employee

Hi,

TouchGFX is based on the MVP design architecture, meaning that to communicate between different screen you need to pass the data through the Model. To understand how to communicate between the hardware and the GUI, have a look at the backend communication article,

I would recommend looking at tutorial 3 which is a bot similar to what you wish to do, where you set the time on one screen to modify the clock on another,

/Romain

kweisi50
Associate II

Hi Romain,

Much thanks, I will check out what you suggest.

Mike Zomo