MikroElektronika:
Development
tools
-
Books
-
Compilers
21 1
page
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Prototype
void Glcd_Write_Data(unsigned short data);
Description Writes data to the current location in GLCD memory and moves to the next location.
Requires GLCD needs to be initialized. See Glcd_Init.
Example
Glcd_Write_Data(data);
Glcd_Write_Data
Prototype
void Glcd_Fill(unsigned short pattern);
Description Fills the GLCD memory with byte pattern. To clear the GLCD screen, use
Glcd_Fill(0); to fill the screen completely, use Glcd_Fill($FF).
Requires GLCD needs to be initialized. See Glcd_Init.
Example
Glcd_Fill(0);
// Clear screen
Glcd_Fill
Prototype
void Glcd_Dot(unsigned short x, unsigned short y, char color);
Description Draws a dot on the GLCD at coordinates (x, y). Parameter color determines the dot
state: 0 clears dot, 1 puts a dot, and 2 inverts dot state.
Requires GLCD needs to be initialized. See Glcd_Init.
Example
Glcd_Dot(0, 0, 2);
// Invert the dot in the upper left corner
Glcd_Dot