Hi,
I am getting a strange problem while using atmega328 i2c to connect my apds9960 gesture sensor. I have connected the SDA and SCL of apds9960 using 2.2k pull-up to my atmega. The SDA works fine and the waveform generated is as expected, however, the SCL waveform shows a DC offset of 0.3-0.4V.
Also, my sensor works quite well for sometime, however the i2c hangs after sometime. I am not sure if the problem is because of the dc offset. Any help would be appreciated.
Regards