cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing SPI, UART data in touchgfx project

PNaph.2
Associate II

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

1 REPLY 1
Martin KJELDSEN
Chief III

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.

http://sw-center-st-com.s3-eu-west-1.amazonaws.com/touchgfx/TouchGFX/Community/hw_integration_tasks_gpio_4.9.3.zip

/Martin