About the problem of screen rotation

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • About the problem of screen rotation

      use a vertical screen with a screen resolution of 480*1280, but I need to let him display horizontally, that is, rotate 90° clockwise or counterclockwise.

      GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER, COLOR_CONVERSION, 0, 0);

      I changed the display direction of the created device object by modifying the parameter DPISPLAY_DRIVER of the GUI_DEVICE_CreateAndLink function. The DISPLAY_DRIVER is modified to:

      GUIDRV_LIN_24
      GUIDRV_LIN_OY_24
      GUIDRV_LIN_OX_24
      GUIDRV_LIN_OXY_24
      GUIDRV_LIN_OS_24


      The actual display is as follows:



      The X and Y axis mirrors can be displayed normally, the rotation display is abnormal, and the GUI_NUMBYTES size is set to 10M. What is the reason for this? How to solve it?
      Or use other methods to achieve the rotation of the screen.
    • Hi,

      Not sure what is going wrong. I gave it a try and everthing is fine.

      To rotate the display use the following:

      GUIDRV_LIN_OSY_24 - Rotate counter clockwise
      GUIDRV_LIN_OSX_24 - Rotate clockwise

      GUIDRV_LIN_OXY_24 - Rotate 180


      Which device are you using?

      Regards,

      Sven
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.