DISP_ORIENTATION Macro

Microchip Graphics Library

Microchip Graphics Library
DISP_ORIENTATION Macro
C
#define DISP_ORIENTATION 0
Overview

Defines the display rotation with respect to its native orientation. For example, if the display has a resolution specifications that says 240x320 (QVGA), the display is natively in portrait mode. If the application uses the display in landscape mode (320x240), then the orientation must be defined as 90 or 180 degree rotation. Graphics Library will calculate the actual pixel location to rotate the contents of the screen. So when users view the display, the image on the screen will come out in the correct orientation. Valid values:

  • 0 : display in its native orientation
  • 90 : rotated 90 degrees clockwise direction
  • 180 : rotated 180 degrees clockwise direction
  • 270 : rotated 270 degrees clockwise direction

Example
// define in Hardware Profile
#define DISP_ORIENTATION 90
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved