User manual
288
mikoBasic PRO for PIC32
MikroElektronika
S1D13700_Line
S1D13700_H_Line
Prototype
sub procedure S1D13700_Line(dim x0, y0, x1, y1 as word, dim pcolor as
byte)
Returns Nothing.
Description Draws a line from (x0, y0) to (x1, y1).
Parameters:
- x0: x coordinate of the line start.
- y0: y coordinate of the line end.
- x1: x coordinate of the line start.
- y1: y coordinate of the line end.
- 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_H_Line(dim x_start, x_end, y_pos as word, dim color
as byte)
Returns Nothing.
Description Draws a horizontal line.
Parameters:
- x_start: x coordinate of the line start.
- x_end: x coordinate of the line end.
- y_pos: line position on the y 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)
Value Description
S1D13700_BLACK
Black color.
S1D13700_WHITE
White color.
Value Description
S1D13700_BLACK
Black color.
S1D13700_WHITE
White color.