Just posted an modified Arduino Wire (I2C/TWI) Library

319 views
Skip to first unread message

Dan Bowen

unread,
Apr 28, 2012, 6:05:10 PM4/28/12
to LVL1 Hackerspace, bla...@hackmanhattan.danielpacker.org
Hi All,
Thought you might be interested in this improved I2C library for arduino that I hacked together and tested. Our balloon payload arduinos have been freezing up when the I2C bus gets busy, and when we looked into it, they were getting stuck in while() loops in the Arduino Wire library. These while loops had no timeout, and sometimes the thing they were waiting for wasn't going to ever happen!

I posted the code as complete project on github, and documented it with a nice readme for how to use the modified library. Nicely, all you have to do is change the #include line in your sketch, all the commands are the same!

http://github.com/whitestarballoon/WSWireLib

Thanks,
Dan

David Reeves

unread,
Aug 14, 2015, 12:24:06 PM8/14/15
to LVL1 - Louisville's Hackerspace, bla...@hackmanhattan.danielpacker.org
Very hopeful this will solve problems I am also having with I2C communications.

I seet you did this a few years ago now.  I am however having some problems installing the lib.  It appears from Google search others have also had some problems and hoping you might get this and be able to shed some light on it.  First the zip does not install using Arduino ide library zip install.  Then when I check out the zip and look at the WSWire.cpp it appears to be the source from twi.cpp instead and the same with WSWire.h is twi.h.  Did something happen to github?

Many Thanks!
Reply all
Reply to author
Forward
0 new messages