2022-11-03 09:57 PM
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
2022-11-04 02:22 AM
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
2022-11-04 03:04 AM
what actually i need is first recieving value on 1st text area and second on second and so on
2022-11-04 03:46 AM
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.
2022-11-04 04:33 AM
ok i understand
2022-11-04 04:38 AM
can i directly use hal code in touch gfx files including hal.h file(corresponds to which MCU)