Arduino-AirMCU icon indicating copy to clipboard operation
Arduino-AirMCU copied to clipboard

AIR001使用<Wire.h>时, Wire.endTransmission()函数异常

Open hehe501 opened this issue 2 years ago • 0 comments

描述一下这个bug / Describe the bug

再使用Wire.h进行iic通信时准备获取一个字节的数据时,使用 Wire.endTransmission(false);来完成重启IIC而不IIC释放总线的时序,但实际情况是Wire.endTransmission(false)和Wire.endTransmission(true)产生同样的时序,即都释放了总线,发送了stop命令

复现步骤 / To Reproduce

再使用比如需要先发送地址加寄存器然后加地址的读取寄存器的IIC时序,就会复现,Wire.endTransmission(false)和Wire.endTransmission(true)产生同样的时序

如果正常,应该是什么样 / Expected behavior

Wire.endTransmission(false)不会产生stop信号,不会释放IIC总线

截图 / Screenshots

错误时序 2 正确的应该是 1

日志 / Logs

系统 / System

Win10

PACK包版本 / Version

1.0.1.1

验证

  • [X] 检查过该问题,之前没有人提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [ ] 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
  • [X] 已经提供了完整的报错信息、日志、截图,没有经过删减。

hehe501 avatar Nov 08 '23 09:11 hehe501