User manual
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
353
Glcd_Set_Side
Glcd_Set_X
Glcd_Set_Page
Prototype
sub procedure Glcd_Set_Side(dim x_pos as byte)
Description Selects Glcd side. Refer to the Glcd datasheet for detailed explanation.
Parameters - x_pos: Species position on x-axis of the Glcd. Valid values: 0..127. Values from 0 to 63 specify the
left side, values from 64 to 127 specify the right side of the Glcd.
Returns Nothing.
Requires Glcd needs to be initialized, see Glcd_Init routine.
Example The following two lines are equivalent, and both of them select the left side of Glcd:
Glcd_Select_Side(0)
Glcd_Select_Side(10)
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.
Prototype
sub procedure Glcd_Set_X(dim x_pos as byte)
Description Sets x-axis position to x_pos dots from the left border of Glcd within the selected side.
Parameters - x_pos: position on x-axis. Valid values: 0..63
Returns Nothing.
Requires Glcd needs to be initialized, see Glcd_Init routine.
Example
Glcd_Set_X(25)
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.
Prototype
sub procedure Glcd_Set_Page(dim page as byte)
Description Selects page of the Glcd.
Parameters - page: page number. Valid values: 0..7
Returns Nothing.
Requires Glcd needs to be initialized, see Glcd_Init routine.
Example
Glcd_Set_Page(5)
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.