angrykid
01-09-2012, 07:38 AM
Hi all,
So I had a little problem with I2C Restart - SNAPpy doesn't have this function built in (as you may know some devices require this condition in order to communicate). So I wrote little script with poke() and peek() functions in order to access processor's peripheral I2C module (ARM7, MC13224V) and configure it for communications with Freescale sensors (MAG3110 and MMA8451Q). The code is fairly simple (no interrupt routines) but also quite raw (no ACK check).
Good luck!
So I had a little problem with I2C Restart - SNAPpy doesn't have this function built in (as you may know some devices require this condition in order to communicate). So I wrote little script with poke() and peek() functions in order to access processor's peripheral I2C module (ARM7, MC13224V) and configure it for communications with Freescale sensors (MAG3110 and MMA8451Q). The code is fairly simple (no interrupt routines) but also quite raw (no ACK check).
Good luck!