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.
|
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) |
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").
none
mydisp.setPrintPos(15,8); //set cursor position to (15,8)
serial.writeString("TP\x0F\x08"); //set cursor position to (15,8)
| Version | Description |
|---|---|