Mikroelektronika MIKROE-724 データシート

ページ / 726
592
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
TFT_Set_Index
TFT_Write_Command
TFT_Write_Data
Prototype
sub procedure TFT_Set_Index(dim index as byte)
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
sub procedure TFT_Write_Command(dim cmd as byte)
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
sub procedure TFT_Write_Data(dim _data as word)
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)