Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
333
S1D13700_V_Line
S1D13700_Rectangle
Prototype
sub procedure S1D13700_V_Line(dim y_start, y_end, x_pos as word, dim color 
as byte)
Returns
Nothing.
Description Draws a horizontal line.
Parameters: 
y_start
: y coordinate of the line start. 
y_end
: y coordinate of the line end. 
x_pos
: line position on the x axis. 
pcolor
: color parameter. Valid values: 
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
S1D13700_Line(0, 0, 239, 127, S1D13700_WHITE)
Prototype
sub procedure S1D13700_Rectangle(dim x0, y0, x1, y1 as word, dim pcolor as 
byte)
Returns
Nothing.
Description Draws a rectangle on Glcd.
Parameters: 
x0
: x coordinate of the upper left rectangle corner. 
y0
: y coordinate of the upper left rectangle corner. 
x1
: x coordinate of the lower right rectangle corner. 
y1
: y coordinate of the lower right rectangle corner. 
pcolor
: color parameter. Valid values: 
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
S1D13700_rectangle(20, 20, 219, 107, S1D13700_WHITE)
Value
Description
S1D13700_BLACK
Black color.
S1D13700_WHITE
White color.
Value
Description
S1D13700_BLACK
Black color.
S1D13700_WHITE
White color.