User manual
330
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
S1D13700_Line
S1D13700_H_Line
Prototype
procedure S1D13700_Line(x0, y0, x1, y1 : word; pcolor : 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
procedure S1D13700_H_Line(x_start, x_end, y_pos : word; color : 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.