Command |
SETUP(I2C) |
|
|
Description |
Setup the protocol for the
I2C communication |
|
|
Syntax/Parameters |
setup(i2c){...} |
|
|
Options |
set = "C3E"; //quick set up of I2C - Slave with Command and
Address
addr="\\3E"; //set the address pair of the TFT module (Slave mode)
in HEX code, range \\01-\\7F
end="\\00"; //byte returned when no data
left in display's i2c transmit buffer
active=S; //set as Master (M) or Slave (S) or disabled (N).
Default = N
speed=100; //set transmit speed value in kilobits/sec from 20 to
400 for master mode. Default = 100
rxi=Y; //set
receive buffer interface as active (Y), a command processing source (C) or
disable (N). Default = N
proc=“;”; //process on receive termination character(s)
procDel=Y; //remove or keep the termination character(s) before
processing
procNum=5; //interrupt on n bytes received as alternative to proc and
procDel.
encode=s; //set s=ASCII, w=UNICODE, m=UTF8 or use sr specifying raw text bytes and sd
for raw data.
rxb=8192; //set size of receive buffer in bytes. Default = 8192
bytes
txi=Y; //set transmit buffer interface as active (Y), to
echo command processing (E) or disable (N)
txb=8192; //set size of transmit buffer in bytes. Default = 8192
bytes |
|
|
Example |
setup(i2c)
{
set = "C3E";
//quick set up of I2C - Slave with Command and Address
}
setup(i2c)
{
addr="\\3E"; //set the address pair of the TFT module (Slave mode)
in HEX code, range \\01-\\7F
end="\\00"; //byte returned when no data
left in display's i2c transmit buffer
active=S; //set as Master (M) or Slave (S) or disabled (N).
Default = N
speed=100; //set transmit speed value in kilobits/sec from 20 to
400 for master mode. Default = 100
rxi=Y; //set
receive buffer interface as active (Y), a command processing source (C) or
disable (N). Default = N
proc=“;”; //process on receive termination character(s)
procDel=Y; //remove or keep the termination character(s) before
processing
encode=s; //set s=ASCII, w=UNICODE, m=UTF8 or use sr specifying raw text bytes and sd
for raw data.
rxb=8192; //set size of receive buffer in bytes. Default = 8192
bytes
txi=Y; //set transmit buffer interface as active (Y), to
echo command processing (E) or disable (N)
txb=8192; //set size of transmit buffer in bytes. Default = 8192
bytes
} |
|
|
|