SparkFun will be closed Nov 26th and 27th for the Thanksgiving holiday. Orders placed after 2:00pm MT on the 25th will ship out Monday the 30th.
Track My Order
Frequently Asked Questions
International Shipping Info
Mon-Fri, 9am to 12pm and
1pm to 5pm U.S. Mountain Time:
Chat With Us
July 22, 2009
about 2 years ago
For anyone that is struggling to get this sensor to work with an Arduino Leonardo using the libraries provided the example code link, I was able to get it to work by doing the following:
First, the Leonardo I2C interface is detailed here: http://arduino.cc/en/Main/arduinoBoardLeonardo
SDA -> Digital Pin 2
SCL -> Digital Pin 3
Second, the Leonardo interrupt setup is detailed here: http://arduino.cc/en/Reference/AttachInterrupt
The DMP6_test is setup to use interrupt 0 which is Digital Pin 2 on the Leonardo. I changed the line:
attachInterrupt(0, dmpDataReady, RISING);
attachInterrupt(4, dmpDataReady, RISING);
And connected the interrupt to Digital pin 7.
The DMP6_test and Processing sketch now works like a charm! I hope this helps anyone else that was struggling with the Leonardo setup.
No public wish lists :(
Forgot your password?
No account? Register one!