Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
564
mikoC PRO for PIC32
MikroElektronika
TFT_Set_Index
TFT_Write_Command
TFT_Write_Data
Prototype
void TFT_Set_Index(unsigned short index);
Returns
Nothing
Description Accesses register space of the controller and sets the desired register.
Parameters:
index
: desired register number. 
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
// Access register at the location 0x02
TFT_Set_Index(0x02);
Prototype
void TFT_Write_Command(unsigned short cmd);
Returns
Nothing
Description Accesses data space and writes a command.
Parameters: 
cmd
: command to be written. 
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
// Write a command
TFT_Write_Command(0x02);
Prototype
void TFT_Write_Data(unsigned int _data);
Returns
Nothing
Description Writes date into display memory.
Parameters: 
_data
:data to be written. 
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
// Send data
TFT_Write_Data(0x02);