Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
316
mikoC PRO for PIC32
MikroElektronika
S1D13700_Line
S1D13700_H_Line
Prototype
void  S1D13700_Line(unsigned  int  x0,  unsigned  int  y0,  unsigned  int  x1, 
unsigned int y1, unsigned char pcolor);
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
void S1D13700_H_Line(unsigned int x_start, unsigned int x_end, unsigned int 
y_pos, unsigned short color);
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.