nitacku / nI2C

A non-blocking I2C library for Arduino/AVR without limitations!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Special Issue

MuddyWaiter opened this issue · comments

My own problem. Not anybody's fault. But in my case, I found that my OWN code using the nI2c library (excellent!) did not seem to make the pull-ups engage on my DMStrong Mega 2560. I had to remove two resistors from this board to get I2C to work at all in the first place! The device in question is the BME680. It works correctly when I add 2 4.7k pull-ups. But without them, it WORKS with a Wire library example, and not with yours! This mystery is puzzling to me. I'm a bit of an amateur, but I think I've found something important. Perhaps you can shed some light on this? I've been successful with these DMStrong units already before. I have a scope. I was also wondering if I can access nTWI functions. I'm also kind of new to C...

i think it's due to internal pull up enabled at this line
https://github.com/nitacku/nI2C/blob/master/nTWI.cpp#L48

You could just comment out these two lines and then it would work with external pullups as well.