Hello,
I am trying to get the code for the mpu 6050 accelmeter + gyro with mapleboard. Although there are many ways of doing this, I would like to get this code running: https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050
So basically, I have copied I2Cdev.cpp and I2Cdev.h, along with MPU6050.cpp and MPU6050.h, and tried to verify the code, and I get bunch of errors. Namely:
<BUILD>/I2Cdev.h:94: error: 'int8_t' does not name a type
<BUILD>/I2Cdev.h:95: error: 'int8_t' does not name a type
<BUILD>/I2Cdev.h:96: error: 'int8_t' does not name a type
<BUILD>/I2Cdev.h:97: error: 'int8_t' does not name a type
<BUILD>/I2Cdev.h:98: error: 'int8_t' does not name a type
<BUILD>/I2Cdev.h:99: error: 'int8_t' does not name a type
<BUILD>/I2Cdev.h:100: error: 'int8_t' does not name a type
<BUILD>/I2Cdev.h:101: error: 'int8_t' does not name a type
<BUILD>/I2Cdev.h:103: error: 'uint8_t' has not been declared
<BUILD>/I2Cdev.h:103: error: 'uint8_t' has not been declared
<BUILD>/I2Cdev.h:103: error: 'uint8_t' has not been declared
<BUILD>/I2Cdev.h:103: error: 'uint8_t' has not been declared
<BUILD>/I2Cdev.h:104: error: 'uint8_t' has not been declared
<BUILD>/I2Cdev.h:104: error: 'uint8_t' has not been declared
<BUILD>/I2Cdev.h:104: error: 'uint8_t' has not been declared
<BUILD>/I2Cdev.h:104: error: 'uint16_t' has not been declared
So are there no uint8_t, uint16_t, int8_t in maple ide? or am I getting something wrong?
Best Regards,
C.B.