Set output orentation on screen

Description

  There are 4 orentations for all displays, the default is 0. Others are 1, 2 and 3.
  This command doesn't change the contents already on the screen, only affect the following output to screen.

  This command affect all following outputs to screen, until set to a new orentation.

Usage:

Direct:

"SDd"

Arduino:

void setRotation(uint8_t d)

void setRot90(void) //equal setRotation(1)

void setRot180(void) //equal setRotation(2)

void setRot270(void) //equal setRotation(3)

void undoRotation(void)//equal setRotation(0)

C:

void Digole_setRotation(uint8_t d)
void Digole_setRot90(void)
void Digole_setRot180(void)
void Digole_setRot270(void)
void Digole_undoRotation(void)

Parameters:

d

The new orentation for outputs to screen

Return:

none

Example (Arduino):

mydisp.setRot90(1); //set orentation from top to bottom and right to left, the position (0,0) is at top-right

Example(direct)

serial.writeString("SD1"); //set orentation from top to bottom and right to left, the position (0,0) is at top-right

Changelog

Version Description
   

See Also

Clear screen

Clear draw window

The 256 color code 

Set foreground color