Skip to content
Mozzi I2C sample code converted to use MMA7660 accelerometer instead of ADXL345
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
Mozzi_MMA7660.ino
README.md

README.md

Mozzi + MMA7660 Without Arduino Wire Library

Mozzi I2C example code converted to use MMA7660 accelerometer instead of ADXL345

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.

For more details see the writeups Part 1 and Part 2.

You can’t perform that action at this time.