Mozzi + MMA7660 Without Arduino Wire Library
Mozzi I2C example code converted to use MMA7660 accelerometer instead of ADXL345
- Link to Mozzi library
- Link to Original Mozzi I2C example with ADXL345.
- Link to MMA7660 breakout board
- Link to MMA7660 Arduino example using Wire library
But Wire library is incompatible with Mozzi. Attempt to use both in the same Arduino sketch would result in the following error
libraries/Wire/utility/twi.c.o (symbol from plugin): In function `twi_init': (.text+0x0): multiple definition of `__vector_24' libraries/Mozzi/twi_nonblock.cpp.o (symbol from plugin):(.text+0x0): first defined here collect2: error: ld returned 1 exit status exit status 1
This repository shows how to communicate with a MMA7660 using Mozzi's own I2C communication library instead of Arduino's Wire library.