Move cursor position offset

Description

Move the cursor col/row position to the offset from current position. The offset is a signed Byte, value from -128 to +127, the offset is the count of number of the pixels.

Usage:

Direct:

 "ETOxy"

Arduino:

void setTextPosOffset(signed char xoffset, signed char yoffset)

C:

void Digole_setTextPosOffset(signed char xoffset, signed char yoffset)

Parameters:

x(xoffset), y(yoffset)

The pixels number from current position on horizontal and vertical directions. Negative numbers move to up/left, positive number move to down/right.

Return:

none

Example (Arduino):

mydisp.setTextPosOffset(-15,8); //set cursor position from current to left 15 pixels, and down 8 pixels

Example(direct)

serial.writeString("ETOP\xF1\x08"); //set cursor position from current to left 15 pixels, and down 8 

Changelog

Version Description
   

See Also

Set cursor position on pixel

Set cursor position on character