Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

GUIX - Connecting the GUI to hardware switches

$
0
0

Hi.  I just started working with GUIX and have done the tutorials.  I and am now experimenting with the DK-S7G2 Weather Panel demo (an-r30an0231eu0205-synergy-guix-weather-panel) and am trying to figure out how to drive GUI events with the hardware switches instead of the intended touchpanel interface.  To start with, I have tried mapping 2 of the hardware switches to the temp up / down functions of the demo.  When a switch press is detected my thread executes this:

gxe.gx_event_type = GX_SIGNAL(IDB_TEMP_UP, GX_EVENT_CLICKED);
gx_system_event_send(&gxe);

or

gxe.gx_event_type = GX_SIGNAL(IDB_TEMP_DOWN, GX_EVENT_CLICKED);
gx_system_event_send(&gxe);

This correctly increments or decrements the target_temp in MainScreenEventHandler() and the value on the display refreshes as expected, but it does not change the buttons to their selected state.  I have tried sending GX_EVENT_SELECT and GX_EVENT_PEN_DOWN without success.  Tracing through the GUIX source, I tried to see where the touchpanel x,y points are processed with the PEN_DOWN event, but couldn't locate this functionality.  I also tried using the gx_button_select() function without any luck as I'm not sure what to pass for the button address.  I realize I am probably missing some key concepts to this functionality.  Any help with this would be appreciated.  Thanks!

 


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>