Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
mikroC PRO for PIC32
MikroElektronika
331
Glcd_V_Line
Glcd_H_Line
Prototype
void  Glcd_V_Line(unsigned  short  y_start,  unsigned  short  y_end,  unsigned 
short x_pos, unsigned short color);
Description Draws a vertical line on Glcd.
Parameters 
y_start
: y coordinate of the line start. Valid values: 0..63 
y_end
: y coordinate of the line end. Valid values: 0..63 
x_pos
: x coordinate of vertical line. Valid values: 0..127 
color
: color parameter. Valid values: 0..2 
The parameter 
color
 determines the line color: 0 white, 1 black, and 2 inverts each dot.
Returns
Nothing.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
// Draw a vertical line between dots (10,5) and (10,25)
Glcd_V_Line(5, 25, 10, 1);
Notes
None.
Prototype
void  Glcd_H_Line(unsigned  short  x_start,  unsigned  short  x_end,  unsigned 
short y_pos, unsigned short color);
Description Draws a horizontal line on Glcd.
Parameters 
x_start
: x coordinate of the line start. Valid values: 0..127 
x_end
: x coordinate of the line end. Valid values: 0..127 
y_pos
: y coordinate of horizontal line. Valid values: 0..63 
color
: color parameter. Valid values: 0..2 
The parameter 
color
 determines the line color: 0 white, 1 black, and 2 inverts each dot.
Returns
Nothing.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
// Draw a horizontal line between dots (10,20) and (50,20)
Glcd_H_Line(10, 50, 20, 1);
Notes
None.