Announcement

Collapse
No announcement yet.

Orientation screen with gen4-uLCD-28D in Visi-Genie mode.

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

  • Orientation screen with gen4-uLCD-28D in Visi-Genie mode.

    Hi everyone,

    I'm writing a code in 4Dworkshop for an gen4-uLCD-28D 2,8" and I'll use it in portrait an landscape mode.

    But I'd like to know if we can have a automatically rotation OR rotate screen using a button, without having 2 different code.

    Where can I find function(s) to do that, if it's possible ?

  • #2
    Hello,

    Welcome to the Forum.

    I don't think there's a way to do this using the regular ViSi-Genie.

    What I could suggest is to use either ViSi, ViSi-Genie PRO, or Serial environments.

    These environments would give you access to the gfx_ScreenMode("mode"); command.

    With this, you can manipulate the orientation of the Display (Portrait, Landscape, Portrait reversed or Landscape reversed).

    Please note that since the gen4-uLCD-28D is rectangular in shape, rotating the display may result in some cropping on your graphical layout as shown on the photo below.
    Click image for larger version

Name:	ROTATE.png
Views:	145
Size:	91.3 KB
ID:	67866
    I've attached a sample program to demonstrate this.

    The project is made with the ViSi Environment.

    I hope this helps.

    Best regards,
    Last edited by michael_4D; 15th April 2019, 10:04 AM.
    Michael

    Comment


    • #3
      Hi,

      Thanks you for answering me quickly.
      It's exactly the answer I looked for.

      Best regards,

      Comment

      Working...
      X