in a HMI Synergy application built with e2studio and GUIX Studio, is it possible to rotate the screen of 180 degree? Have I to do some changes to the configuration.xml file in e2studio? Thank you.
If your HMI application is using GUIX, you should be able to specify the screen rotation in degrees inside properties for sf_el_gx.
In reply to Karol:
I tryied to change the "screen rotation angle" from 0 to 180, but now I can't see anything on the display, it is blank and seems to be not initialized. Is there something else I should configure?
In reply to Laser:
Ok, I succeded in rotate the screen of 180 degree. I have to change also the "GUIX canvas buffer" from "not used" to "used".
Now, the touch screen is obviously not rotated. Have I to modify the low level driver? Or is possible to change some parameters on the configuration.xml?
You do not need to modify the driver or the configuration. Since you need to use an intermediate thread to pass messages from touch framework to GUIX, you can manipulate the coordinates to implement the rotation, i.e.:
.gx_event_payload.gx_event_pointdata.gx_point_x = (GX_VALUE) (800 - p_message->x),
.gx_event_payload.gx_event_pointdata.gx_point_y = (GX_VALUE) (480 - p_message->y)
Thanks, it works.
In reply to Nick.P: