cancel
Showing results for 
Search instead for 
Did you mean: 

automatic textarea transfer in touch gfx

MA.21
Associate III

i wanted to view 10 adc data from UART and display it on 10 text area , can i use a simple for loop or any other methods, i wanted to change the text area from 1 to 10 while recieving

on every tick

5 REPLIES 5
Yoann KLEIN
ST Employee

Hello @MA.2​ ,

You should read the documentation of TouchGFX, especially the part about gathering data from the backend to the model. Once you can access your values in the Model, you will have to send them to the UI, through the Presenter. This article will help you understanding how it works.

Once your data is available in your UI (ScreenView.cpp), I recommend you to use wildcards with buffer to display the values in the TextAreas. Don't forget to call invalidate() to refresh your TextArea value.

Hope that helps,

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
MA.21
Associate III

what actually i need is first recieving value on 1st text area and second on second and so on

Yoann KLEIN
ST Employee

You have to do that yourself, you cannot directly connect the UI your Back-end without writing any code.

I don't understand what to you want help with exactly to be honest.

Yoann KLEIN
ST Software Developer | TouchGFX
MA.21
Associate III

ok i understand

MA.21
Associate III

can i directly use hal code in touch gfx files including hal.h file(corresponds to which MCU)