bitbank2 / BitBang_I2C

A software I2C implementation to run on any GPIO pins on any system
GNU General Public License v3.0
235 stars 31 forks source link

Detecting I2C chips by POR values may fail #16

Closed cyberman54 closed 3 years ago

cyberman54 commented 3 years ago

Some I2C chips are detected by reading a POR (power-on-reset) value from a control register. There is a risk that this fails after a (non powercycle) reset, if a device's software modified the control register of the chip (e.g. DS3231) after inital power on.

bitbank2 commented 3 years ago

When there are few ways to detect a device you use what you can.