Tuesday 19 March 2013

I2C Repeated Start for All

Note : 04 April 2016 : I2C repeated start transfers have been supported by the kernel device drivers for some time. Explicit support has been added to the HiPi modules with Release 0.46 

My last post on the topic of repeated starts and i2c - I hope.

It turns out that some folks actually use languages other than Perl on their Raspberries.  So I've provided easy access with a command line utility as part of the distribution that can be called from Shell, Python, Scratch etc.

It's a setuid executable ( to have the permissions necessary to map specific parts of /dev/mem ) and installs with execute permissions limited to the i2c group. So any user in the i2c group can now use this method of communicating with an i2c slave if required.


It seems possible to control the speeds of  i2c-0 and i2c-1 independently. It will have to wait for me to solder some connections to a Pi for confirmation.

No comments:

Post a Comment