bitbank2 / I2C_Detector

Scan I2C buses and identify devices which respond.
GNU General Public License v3.0
22 stars 3 forks source link

Wire.requestFrom() should not be used with Wire.beginTransmission(). #2

Closed Koepel closed 5 years ago

Koepel commented 5 years ago

In the file "I2C_Detector/I2C_Detector.ino" there is a Wire.beginTransmission() before a Wire.requestFrom(). That Wire.beginTransmission() at line 80 may be removed.

Regardless which Wire (or Wire compatible) library you use, it does not belong there.

Explanation: Common-mistakes#3

P.S.: I have added the BitBang_I2C to the list.

bitbank2 commented 5 years ago

Thanks for the tip - fixed.