Announcement

Collapse
No announcement yet.

Landscape Mode?

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

  • Landscape Mode?

    Hi,

    Can the 4Duino be programmed so that the display shows in landscape mode, as opposed to portrait mode?

    Thanks,

    David.

  • #2
    Hi David

    Welcome.
    Yes absolutely. Landscape is no problem.

    Regards
    James

    Comment


    • #3
      Hi David,

      Like James mentioned, you can easily program the display to work in landscape. Actually, you can program the 4Duino in 4 different orientations. Here is the part of the code which allows you to change orientation. Just uncomment the line that contains your desired orientation.

      Code:
        Display.gfx_ScreenMode(LANDSCAPE) ; // change manually if orientation change
        //Display.gfx_ScreenMode(LANDSCAPE_R) ; // change manually if orientation change
        //Display.gfx_ScreenMode(PORTRAIT) ; // change manually if orientation change
        //Display.gfx_ScreenMode(PORTRAIT_R) ; // change manually if orientation change
      
        Display.println("This is an example project.");
      I've attached the complete code: orient.zip

      Feel free to ask if you need any help with 4Duino.

      Regards,
      Juniel Cruz

      Comment

      Working...
      X