Mikroc, Glcd_line, Glcd_v_line – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 220: Glcd_h_line

Advertising
background image

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

212

MikroElektronika: Development tools - Books - Compilers

page

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_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_V_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);

Glcd_H_Line

Advertising
This manual is related to the following products: