Announcement

Collapse
No announcement yet.

Screen Rotation + Content on Display

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Screen Rotation + Content on Display

    Hello!

    Hope you are well?

    I'm working on a Visi project and the screen I'm using is a uLCD-32PTU, I want to rotate my screen by a button event if touched and it should rotate the screen
    and it's content such as Image, buttons etc.

    To rotate the screen I simply used gfx_Set(SCREEN_MODE,LANDSCAPE_R) ;

    But the content stayed the same and didn't fit onto the screen so is there a way I can change the image or any content's location by using visi code?

    Thanks
    Regards

    Jacques

  • #2
    That command just rotates the screen for the next operation, it can't alter anything already on the screen.

    So you need to (probably) clear the screen and then redraw everything on it.

    Since the screens aren't square you probably need to move a few things around to new positions
    Mark

    Comment

    Working...
    X