2020-11-17 09:00 PM
Hi, I am working on the TouchGFX project in this we have to access peripheral data like data come from SPI bus, UART and perform screen transition according to the data.
Is there any demo project for this activity? Or
Please tell me the way how can I proceed further.
Thanks
Pratik
2020-11-25 06:40 AM
Accessing SPI, UART, etc in a TouchGFX application is just as you would normally. Where it gets interesting is that you can now send that data, through an OS messagequeue (or poll directly from Model::tick()) to present it in your GUI.
So i would simply have seperate tasks running to handle that sort of communication and then send the data to TouchGFX.
This is an older project, but here i'm sampling gpios in a different task and sending that to the GUI Task. You can do the same with whatever you want.
/Martin