I2C Propeller C Tutorial or Example
c07Brian.Kester
Posts: 36
I would appreciate a Propeller C I2C Tutorial similar the the SPI tutorial. I have looked around, so if I missed it, I would appreciate being pointed in the right direction. Failing that, I would like to see an example code for a sensor using i2c protocol, so that I can work on programming sensors in Propeller C that do not have a SPI option. I am working on the 3-axis compass with a Propeller Activity Board, but I would appreciate an example of anything where I could look at a data sheet and see how to go from the datasheet to the code. I know there are more examples using SPIN, but I am interested in using C for educational purposes and personal interest. Thanks!
Comments
I'm in the final editing stages of just such a tutorial. It uses the i2c_in and i2c_out functions to write to and read from the Propeller Activity Board's EEPROM as an example device (though there are other "ee_" functions in the simpletools library that would be even easier to use). I'll post again here as soon as it is published.
-Steph
I'm hoping to have it posted later this week. But I'd be happy to send you the draft - just send me an email to editor@parallax.com. I always appreciate having an extra set of eyes on draft material.
Is there code to download for this Tutorial? Some have code and some don't.
Check it out here: http://learn.parallax.com/propeller-c-simple-protocols/diy-i2c
a phone with a BS2, no dice.