Hello, im traying to use a code did with arduino to control servomotors using the MPU6050 drive at MSP430 using the IDE Energia, that is similar to the IDE Arduino. It works fine with ARDUINO but when i try to test with MSP430 using Energia the code doesnt compile.
The error is:
C:\Users\vitor\Downloads\Energia\energia-1.6.10E18\libraries\I2Cdev\msp430_i2c.c:14:17: fatal error: i2c.h: No such file or directory.
But i already put the libraries at the Energia libraries folder.
Hello, im traying to use a code did with arduino to control servomotors using the MPU6050 drive at MSP430 using the IDE Energia, that is similar to the IDE Arduino. It works fine with ARDUINO but when i try to test with MSP430 using Energia the code doesnt compile.
The error is: C:\Users\vitor\Downloads\Energia\energia-1.6.10E18\libraries\I2Cdev\msp430_i2c.c:14:17: fatal error: i2c.h: No such file or directory.
But i already put the libraries at the Energia libraries folder.
Im using this code:
include "Wire.h"
include "I2Cdev.h"
include "MPU6050.h"
include "Servo.h"
MPU6050 mpu;
int16_t ax, ay, az; int16_t gx, gy, gz;
Servo myservo_1; Servo myservo_2;
int val; int prevVal; int preVal_2; int val_2;
void setup() { Wire.begin(); Serial.begin(38400);
}
void loop() { mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
} Someone could help me?