
PT-20 Programming Guide
The Get_Cursor function returns an integer of 1 if the cursor is visible
(turned on), 0 if not.
Turn on or off the cursor of the LCD display.
void Set_Cursor(int status);
Set_Cursor (0);//Cursor off
The Set_Cursor function displays or hides the cursor of the LCD display
according to the value of status specified. If status equals 1, 2, or 3, the
cursor will be turned on to show the current cursor position. If status
equals 0, the cursor will be invisible.
Cursor on, and cursor type is a line as _.
Cursor on, and cursor type is a line as |.
Cursor on, and cursor type is a block as ■.
Move cursor to new position.
int gotoxy(int x_position, int y_position);
gotoxy(3,2);/* Move to second line of the third row */
The gotoxy function moves the cursor to a new position whose
coordinate is specified in the argument x_position and y_position.
Normally the gotoxy function will return an integer value of 1 when
operation completes. In case of LCD fault, 0 is returned to indicate error.
Get x-coordinate of the cursor location.
The wherex function determines the current x-coordinate location of the
cursor.
The wherex function returns the x-coordinate of the cursor location.
Get x-coordinate and y-coordinate of the cursor location
int wherexy(int* column, int* row);
Kommentare zu diesen Handbüchern