ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 309 of 545 2020-04-15
AT#I2CCF=?
Test command returns the range of available values for parameters <sdaPin>, <sclPin>,
<deviceId>, <lenwr>, <lenrd>.
Set GPIO_2 as SDA, GPIO_3 as SCL; Device I2C address is 0x20;
First is send data 0x0a; after a "RESTART", 4 data bytes are read.
AT#I2CCF=2,3,20,1,4
>0a<ctrl-z>
#I2CCF: abcdef12
OK
The sequence is the following:
START - 0x20- 0x0a -RESTART - 0X21 - data read 1 -...- data read 4 - STOP
Set GPIO_2 as SDA, GPIO_3 as SCL; Device I2C address is 0x20;
read data:
AT#I2CCF=2,3,20,0,2
#I2CCF: abcd
OK
The sequence is the following:
START - 0x21- - data read 1 - data read 2 - STOP