mikroElektronika PIC Microcontrollers PIC12 User Manual page 221

Mikroc user's manual
Table of Contents

Advertisement

mikroC
making it simple...
Glcd_Rectangle
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
(x2, y2)
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
Example
Glcd_Rectangle(10, 0, 30, 35, 1);
Glcd_Box
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
set the bottom right corner. Parameter
dots), 1 draws a full box (put dots), and 2 draws an inverted box (invert each dot).
Requires
GLCD needs to be initialized. See
Example
Glcd_Box(10, 0, 30, 35, 1);
MikroElektronika: Development tools - Books - Compilers
mikroC - C Compiler for Microchip PIC microcontrollers
set the bottom right corner. Parameter
Glcd_Init
Glcd_Init
set the upper left corner,
(x1, y1)
defines the border: 0 draws an
color
.
set the upper left corner,
(x1, y1)
defines the fill: 0 draws a white box (clear
color
.
(x2, y2)
page
213

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?

This manual is also suitable for:

Pic microcontrollers pic16Pic microcontrollers pic18

Table of Contents