Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
mikroC PRO for PIC32
MikroElektronika
329
Glcd_Read_Data
Glcd_Write_Data
Prototype
unsigned short Glcd_Read_Data();
Description Reads data from from the current location of Glcd memory and moves to the next location.
Parameters None.
Returns
One byte from Glcd memory, formatted as a word (16-bit).
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Glcd side, x-axis position and page should be set first. See functions Glcd_Set_Side, Glcd_Set_X, 
and Glcd_Set_Page.
Example
unsigned int data_;
...
Glcd_Read_Data();
data_ = Glcd_Read_Data();
Notes
This routine needs to be called twice; After the first call, data is placed in the buffer register. After the 
second call, data is passed from the buffer register to data lines.
Prototype
void Glcd_Write_Data(unsigned short data_);
Returns
Nothing.
Description Writes one byte to the current location in Glcd memory and moves to the next location.
Parameters: 
data_
: data to be written 
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Glcd side, x-axis position and page should be set first. See functions Glcd_Set_Side, Glcd_Set_X, 
and Glcd_Set_Page.
Example
unsigned short data_;
...
Glcd_Write_Data(data_);