Skip to content

mathworks/ArduinoCore-avr

 
 

Repository files navigation

Arduino AVR I2C library timeout

The read write operations in I2C for AVR cores do not have any timeout. So, in an unsuccessful I2C read or write operation, the hardware may get stuck in an infinite loop. This situation has been observed mostly when the connection between the hardware and the I2C device is loose. In this submission a timeout function has been added to Wire library.

This fix is inspired from the following GitHub submission

https://github.com/steamfire/WSWireLib

Packages

No packages published

Languages

  • C 88.9%
  • C++ 6.4%
  • Makefile 2.8%
  • Objective-C 1.2%
  • Logos 0.4%
  • Shell 0.2%
  • Other 0.1%