-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
compiler error #45
Comments
Hi @megarduino, The "MPU6000_DMP6.ino" file and anything that deals with SPI isn't part of the I2Cdev library officially (at least not yet); where did that file come from? You may have forgotten to add this line to the main sketch:
That might help, though the other errors may still occur. I'm not familiar with the SPI ported version of the code, so I'm afraid I probably can't help much. |
Hi, |
Closing ancient issue for cleanup. |
get a very long list of error messages by compiling MPU6000_DMP6.ino.
use Arduino 1.0.5 (tried also 1.5.2, same list), selected board is Mega 2560
I uploaded the i2cdevlib-master today and copied all necessary files in the libraries folder. Do I use an old file or wrong Arduino version?
list starts with
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp: In member function 'void MPU60X0::initialize()':
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:69: error: 'SPI' was not declared in this scope
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp: In member function 'uint8_t MPU60X0::getAuxVDDIOLevel()':
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:100: error: invalid conversion from 'int' to 'uint8_t_'
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:100: error: initializing argument 4 of 'static int8_t I2Cdev::readBit(uint8_t, uint8_t, uint8_t, uint8_t_, uint16_t)'
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:100: error: invalid conversion from 'uint8_t*' to 'uint16_t'
C:\Program Files\Arduino\libraries\MPU60X0\MPU60X0.cpp:100: error: initializing argument 5 of 'static int8_t
The text was updated successfully, but these errors were encountered: