From bedbbf0750250259375ac1e84b2f53a717ef8254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wood=20Wang=28=E7=8E=8B=E7=A5=A5=E7=BA=A2=29?= Date: Mon, 24 Feb 2025 11:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0IIC.md=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zh/hardware/peripheral-interfaces/IIC.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Application_guide/zh/hardware/peripheral-interfaces/IIC.md b/docs/Application_guide/zh/hardware/peripheral-interfaces/IIC.md index 1e96ff7d..aa982162 100644 --- a/docs/Application_guide/zh/hardware/peripheral-interfaces/IIC.md +++ b/docs/Application_guide/zh/hardware/peripheral-interfaces/IIC.md @@ -88,7 +88,7 @@ I2C.write(slaveaddress, addr, addr_len, data, datalen) - addr_len为寄存器地址长度,寄存器地址长度可从外设芯片数据手册中确认,目前经常用到的IIC外设芯片的寄存器地址长度一般是一个字节,如QMA7981三轴传感器芯片。 -API介绍请参考[machine.UART.write](https://python.quectel.com/doc/API_reference/zh/peripherals/machine.UART.html#%3Ccode%3Euart.write%3C/code%3E) +API介绍请参考[machine.IIC.write](https://python.quectel.com/doc/API_reference/zh/peripherals/machine.I2C.html#I2C.write) ### 接收数据 ```python @@ -101,7 +101,7 @@ I2C.read(slaveaddress, addr, addr_len, r_data, datalen, delay) **2. delay参数设置:** 由于部分IIC外设芯片收到主机写数据指令后需要延时才能正常返回数据,所以在模组(主机)发送完写指令后延时一段时间再读取IIC外设芯片数据,如图: -API及参数含义介绍请参考[machine.UART.read](https://python.quectel.com/doc/API_reference/zh/peripherals/machine.UART.html#%3Ccode%3Euart.read%3C/code%3E) +API及参数含义介绍请参考[machine.IIC.read](https://python.quectel.com/doc/API_reference/zh/peripherals/machine.I2C.html#I2C.read) ## 应用案例 -- Gitee