Skip to content

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

@hehe501

Description

@hehe501

描述一下这个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

验证

  • 检查过该问题,之前没有人提过 / 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.
  • 已经提供了完整的报错信息、日志、截图,没有经过删减。

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions