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.
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) |
d
The new orentation for outputs to screen
none
mydisp.setRot90(1); //set orentation from top to bottom and right to left, the position (0,0) is at top-right
serial.writeString("SD1"); //set orentation from top to bottom and right to left, the position (0,0) is at top-right
Version | Description |
---|---|