Set cursor position in draw window

Description

Set the cursor col/row position based on the size of space(" ") in current selected font.

Note: the current font must include the space " " character, otherwise, this command won't work.
The top-left position is: 0,0.

Usage:

Direct:

 "TPxy"

Arduino:

void setPrintPos(unsigned int x, unsigned int y, uint8_t p = 0)

C:

void Digole_setPrintPos(unsigned int x, unsigned int y, uint8_t p = 0)

Parameters:

x, y

The position of characters (Not pixel position), it's based on the width and height of current font.

p

If p=0, set position base on the size of font, otherwise, set as pixel position (same as "GP").

Return:

none

Example (Arduino):

mydisp.setPrintPos(15,8); //set cursor position to (15,8)

Example(direct)

serial.writeString("TP\x0F\x08"); //set cursor position to (15,8)

Changelog

Version Description
   

See Also

Set cursor position of pixel

Set draw window