2020-04-28 05:53 PM
Thank you for helping.
I want to display the value detected by the sensor in View.
I'm thinking of using the RTOS mail queue.
Where should I describe queue reception?
Thank you.
Solved! Go to Solution.
2020-04-28 10:30 PM
Hi @Ebun.1 Whereas you may check the webinar content, here is a brief of what you could possibly do :
1) Use the Model::tick function to read your sensor value(s) & communicate to the TouchGFX system, using the presenter object ( this means your polling/reading of the sensor happens only during the porch intervals, typically @ 60 hz ). Please be aware that the polling code should execute within 1 mS so as not to have an impact on the graphics;
2) Create another task & then use the message queue or any other inter-task communication methods to send the information. You will have to use the Model::tick function here as well to receive the information using inter-task communication & propagate the information further.
You may also check : https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/backend-communication
Keep reading the online documentation iteratively to get a good control over the framework.
/Jagdish
2020-04-28 10:06 PM
Hi @Ebun.1 ,
Please check https://community.st.com/s/question/0D50X0000AU4zodSQB/interfacing-with-hardware-in-touchgfx-applications
There's a link to a webinar i did on this topic, concretely, as well as the examples. (Physical button to UI through EXTI and GPIO sampling)
/Martin
2020-04-28 10:30 PM
Hi @Ebun.1 Whereas you may check the webinar content, here is a brief of what you could possibly do :
1) Use the Model::tick function to read your sensor value(s) & communicate to the TouchGFX system, using the presenter object ( this means your polling/reading of the sensor happens only during the porch intervals, typically @ 60 hz ). Please be aware that the polling code should execute within 1 mS so as not to have an impact on the graphics;
2) Create another task & then use the message queue or any other inter-task communication methods to send the information. You will have to use the Model::tick function here as well to receive the information using inter-task communication & propagate the information further.
You may also check : https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/backend-communication
Keep reading the online documentation iteratively to get a good control over the framework.
/Jagdish
2020-04-29 01:51 AM
Hello @Ebun.1 (Community Member)
Which Hardware Board you are using ?
Below link may help you.
--
Karan
2020-04-29 03:39 PM
Thank you very much.
I am going to use it as an example.
2020-04-29 03:39 PM
Thank you very much.
I am going to use it as an example.
2020-04-29 03:40 PM
board: STM32F769I-DISCO
Thank you very much.
I am going to use it as an example.