MPU9250 on Arduino Nano



  • I connect this sensor to Arduino Nano and some errors
    /home/insippo/sketchbook/libraries/ArduinoMotionSensorExample/inv_mpu.cpp:47:0: warning: "min" redefined
    #define min(a,b) ((a<b)?a:b)
    ^
    In file included from /home/insippo/sketchbook/libraries/ArduinoMotionSensorExample/I2Cdev.h:77:0,
    from /home/insippo/sketchbook/libraries/ArduinoMotionSensorExample/inv_mpu.h:24,
    from /home/insippo/sketchbook/libraries/ArduinoMotionSensorExample/inv_mpu.cpp:25:
    /home/insippo/.arduino15/packages/arduino/hardware/avr/1.6.14/cores/arduino/Arduino.h:92:0: note: this is the location of the previous definition
    #define min(a,b) ((a)<(b)?(a):(b))
    ^
    /home/insippo/sketchbook/libraries/ArduinoMotionSensorExample/inv_mpu.cpp:50:2: error: #error Which gyro are you using? Define MPUxxxx in your compiler options.
    #error Which gyro are you using? Define MPUxxxx in your compiler options.


 

492
Online

7.9k
Users

8.7k
Topics

93.6k
Posts