Hi,
Has anyone here used software I2C with the Web platform? I would like to add some GPIOs and other stuff which uses I2C, but cannot use hardware I2C since the data PIN is on one of the EEPROM Pins! (And connot be remapped)
Thanks in advance ;)
Software I2C is pretty simple, here's an old library we used to use in the Bus Pirate:
http://code.google.com/p/the-bus-pirate ... /m_i2c_1.c (http://code.google.com/p/the-bus-pirate/source/browse/v2/source/m_i2c_1.c)
The current Bus Pirate firmware uses a more abstract library to save space. It is public domain instead of GPL though:
http://code.google.com/p/the-bus-pirate ... /bitbang.c (http://code.google.com/p/the-bus-pirate/source/browse/v4.3/source/bitbang.c)
It is based on this public domain example, it was pretty easy to follow and write my own:
//http://www.esacademy.com/faq/i2c/busevents/i2cstast.htm
Ah okay, thanks. Will try it later when I'm home.
Just FYI: TLC59108 (http://http://focus.ti.com/docs/prod/folders/print/tlc59108.html) is a nice I2C PWM IC! there is also a 16port version of this. Oh and I also made eagle libraries of both chips, so if someone is interested in using it, I can upload the libs.