Skip to main content
MA.21
Associate III
November 4, 2022
Question

automatic textarea transfer in touch gfx

  • November 4, 2022
  • 5 replies
  • 1592 views

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

This topic has been closed for replies.

5 replies

Yoann KLEIN
ST Employee
November 4, 2022

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 KLEINST Software Developer | TouchGFX
MA.21
MA.21Author
Associate III
November 4, 2022

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

Yoann KLEIN
ST Employee
November 4, 2022

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 KLEINST Software Developer | TouchGFX
MA.21
MA.21Author
Associate III
November 4, 2022

ok i understand

MA.21
MA.21Author
Associate III
November 4, 2022

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