avr-hal
avr-hal copied to clipboard
Fixed 370: the hanging i2c because of a faulty stop the twint is set by the avr itself.
I had added the timouts that you requested for and i noticed that it always go stuck on start.
So i assumed that it was one of the bits set at the stop which caused the i2c to fail. The twint is set by the avr itself. So when i disable the manual setting and now it works. https://www.engineersgarage.com/avr-atmega32-twi-registers/
FYI i can read the sensor with a 100kHz bus and a 25ms delay in between. So it seems to work as expected.