Composite Commands - TBTerra/pictor GitHub Wiki
These commands are used to set the orientation of the screen.
void pictorSetRotation(const uint8_t rotation);
Set the orientation of the screen.
Parameters:
-
rotation
- enum value of the screen rotation.- 0 - Standard portrait orientation (Same rotation as the PCB labelling).
- 1 - Standard landscape orientation (90 degree clockwise rotation).
- 2 - Inverted portrait orientation (180 degree rotation).
- 3 - Inverted landscape orientation (90 degree anti-clockwise rotation).
void pictorCanvasSet(const point A, const point B);
Sets a drawing canvas on the screen.
Parameters:
-
A
- Point structure for top-left corner of the canvas. -
B
- Point structure for bottom-right corner of the canvas.