ABL electronic PIC16 Personal Computer User Manual


 
MikroElektronika:
Development
tools
-
Books
-
Compilers
21 3
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Prototype
void Glcd_Rectangle(unsigned short x1, unsigned short y1,
unsigned short x2, unsigned short y2, char color);
Description Draws a rectangle on the GLCD. Parameters (x1, y1) set the upper left corner,
(x2, y2) set the bottom right corner. Parameter color defines the border: 0 draws an
empty border (clear dots), 1 draws a solid border (put dots), and 2 draws a “smart” bor-
der (invert each dot).
Requires GLCD needs to be initialized. See Glcd_Init.
Example
Glcd_Rectangle(10, 0, 30, 35, 1);
Glcd_Rectangle
Prototype
void Glcd_Box(unsigned short x1, unsigned short y1, unsigned
short x2, unsigned short y2, char color);
Description Draws a box on the GLCD. Parameters (x1, y1) set the upper left corner, (x2, y2)
set the bottom right corner. Parameter color defines the fill: 0 draws a white box (clear
dots), 1 draws a full box (put dots), and 2 draws an inverted box (invert each dot).
Requires GLCD needs to be initialized. See Glcd_Init.
Example
Glcd_Box(10, 0, 30, 35, 1);
Glcd_Box