mikroC

mikroC - C Compiler for Microchip PIC microcontrollers

making it simple...

Glcd_Line

Prototype

void Glcd_Line(int x1, int y1, int x2, int y2, char color);

Description Draws a line on the GLCD from (x1, y1) to (x2, y2). Parameter color determines the dot state: 0 draws an empty line (clear dots), 1 draws a full line (put dots), and 2 draws a “smart” line (invert each dot).

Requires GLCD needs to be initialized. See Glcd_Init.

Example

Glcd_Line(0, 63, 50, 0, 2);

Glcd_V_Line

Prototype

void Glcd_V_Line(unsigned short y1, unsigned short y2, unsigned

 

short x, char color);

 

 

Description

Similar to GLcd_Line, draws a vertical line on the GLCD from (x, y1) to

 

(x, y2).

 

 

Requires

GLCD needs to be initialized. See Glcd_Init.

 

 

Example

Glcd_V_Line(0, 63, 0, 1);

 

 

Glcd_H_Line

 

 

Prototype

void Glcd_H_Line(unsigned short x1, unsigned short x2, unsigned

 

 

 

 

short y, char color);

 

 

 

 

 

 

 

 

Description

Similar to GLcd_Line, draws a horizontal line on the GLCD from (x1, y) to

 

 

 

 

 

(x2, y).

 

 

 

 

 

 

 

 

Requires

GLCD needs to be initialized. See Glcd_Init.

 

 

 

 

 

 

 

 

 

Example

Glcd_H_Line(0, 127, 0, 1);

 

 

 

 

 

 

 

 

 

 

page

 

 

 

 

 

 

 

212

MikroElektronika: Development tools - Books - Compilers