Example to use MPU6050 library. This project contains usage of DMP and way to get raw values from the sensor. I ported here from this arduino's project https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050/Examples. See here if you want try visualization of sensor values. To get move this program, we need to connect pinName 27 to "SCL" pin, pinName 28 to "SDA" pin, and pinName 29 to "INT" pin of MPU6050.

Dependencies:   mbed MPU6050

main.cpp

Committer:
syundo0730
Date:
2016-01-31
Revision:
2:42c4f3a7813f
Parent:
1:ec0a08108442

File content as of revision 2:42c4f3a7813f:

//#include "MPU6050_DMP6.h"
//
//int main() {
//    MPU6050DMP6::setup();
//    while(1) {
//        MPU6050DMP6::loop();
//    }
//}

#include "MPU6050_raw.h"

int main() {
    MPU6050raw::setup();
    while(1) {
        MPU6050raw::loop();
    }
}