Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This library is little hard to use ... #16

Closed
qwerty258 opened this issue Apr 28, 2017 · 2 comments
Closed

This library is little hard to use ... #16

qwerty258 opened this issue Apr 28, 2017 · 2 comments

Comments

@qwerty258
Copy link

The example code works fine on Mega2560, but it won't work when integrated in my own code.

At first I was lured into debug mpu_init() because it always return error code until the return value in example is printed out.

Then I found that the calling order of dmp_enable_feature() and mpu_set_dmp_state() in example may be wrong because when I made the mpu_set_dmp_state() last call in mympu_open () it worked.

The big question is why the example works fine ...

@gregd72002
Copy link
Contributor

gregd72002 commented Apr 28, 2017 via email

@qwerty258
Copy link
Author

The solution for now is give raw data from register to Raspberry Pi to calculate orientation.
Thank you for reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants