144 views
in System Integration by

Hey guys,

I am using the example code "Bezier Clock" with my PSoC 062S2-43012 and TFT shield. I have created a new screen ( named StateDisplay), now I want to display that screen based on a GPIO pin state.

Example: When the GPIO (say P13_5) is LOW- StateDisplay screen has to be displayed, and when GPIO goes back HIGH the Default clock screen has to be displayed. 

Am new to this platform and unable to figure it out so please guide me on how this can be implemented.

Thank you.

2 Answers

0 votes
by
 
Best answer

Hi,

if you are new to the PSoC platform and Embedded Wizard, let me recommend to have a look into the example DeviceIntegration that you will find within the folder /Examples/DeviceIntegration. 

It shows the integration of devices into a UI application and addresses typical questions: How to start a certain action on the target? How to get data from a device? So it demonstrates the access to the underlying hardware, e.g. accessing a LED and getting events from a hardbutton.

You can take that as a template and for further investigations.

Best regards,

Manfred.

 

by
Thanks for the suggestion : )
+1 vote
by
Hi,

If you have already implemented the passing of the values of those GPIO to the GUI, the best way to make those transition is to Use a Property Observer, that will react to the change of those Device Property, and then  perform the switch of screen via the method called by the Observer
by
Thank you for the swift reply. I will try this out.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...