Composite Commands - TBTerra/pictor GitHub Wiki

LCD Composite Commands

These commands are used to set the orientation of the screen.


User Command

void pictorSetRotation(const uint8_t rotation);

Set the orientation of the screen.

Parameters:

  1. 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).

Back-end command

void pictorCanvasSet(const point A, const point B);

Sets a drawing canvas on the screen.

Parameters:

  1. A - Point structure for top-left corner of the canvas.
  2. B - Point structure for bottom-right corner of the canvas.
⚠️ **GitHub.com Fallback** ⚠️