User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
317
S1D13700_V_Line
S1D13700_Rectangle
Prototype
void S1D13700_V_Line(unsigned int y_start, unsigned int y_end, unsigned int
x_pos, unsigned short color);
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
void S1D13700_Rectangle(unsigned int x0, unsigned int y0, unsigned int x1,
unsigned int y1, unsigned char pcolor);
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.