User manual

mikroC PRO for dsPIC
MikroElektronika
545
SPI_Glcd_Fill
SPI_Glcd_Dot
Prototype
void SPI_Glcd_Write_Data(char data_);
Description Writes one byte to the current location in Glcd memory and moves to the next location.
Parameters - data_: data to be written
Returns Nothing.
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routine.
Glcd side, x-axis position and page should be set rst. See the functions SPI_Glcd_Set_Side, SPI_
Glcd_Set_X, and SPI_Glcd_Set_Page.
Example
char data_;
...
SPI_Glcd_Write_Data(data_);
Notes None.
Prototype
void SPI_Glcd_Dot(char x_pos, char y_pos, char color);
Description Draws a dot on Glcd at coordinates (x_pos, y_pos).
Parameters - x_pos: x position. Valid values: 0..127
- y_pos: y position. Valid values: 0..63
- color: color parameter. Valid values: 0..2
The parameter color determines the dot state: 0 clears dot, 1 puts a dot, and 2 inverts dot state.
Returns Nothing.
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routine.
Example
// Invert the dot in the upper left corner
SPI_Glcd_Dot(0, 0, 2);
Notes For x and y axis layout explanation see schematic at the bottom of this page..