LE910Cx AT Commands Reference Guide
80502ST10950A Rev. 14 Page 1143 of 1904 2022-03-04
After entering the command, and if <lenwr> > 0, the module returns
the prompt ">" and waits for the data to send. To complete the
operation enter Ctrl-Z char (0x1A hex); to exit without writing the
message enter ESC char (0x1B hex).
Data must be written in hexadecimal form without 0x.
If data are successfully sent, the response is OK, otherwise an error
code is reported.
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 following:
START
- 0x20- 0x0a -RESTART
- 0X21 - data read 1
-...-
data read 4
- STOP