Example to use MPU9150 library. This project explaining the way to get raw values from the sensor. I ported here from this arduino's project https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU9150/Examples. To get run this program, we need to connect pinName 27 to "SCL" pin, pinName 28 to "SDA" pin, GND to GND, VOUT to VCC.

Dependencies:   MPU9150 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MPU9150_raw.h Source File

MPU9150_raw.h

00001 #ifndef _MPU9150_RAW_H_
00002 #define _MPU9150_RAW_H_
00003 
00004 namespace MPU9150raw {
00005     void setup();
00006     void loop();
00007 };
00008 
00009 #endif /* _MPU9150_RAW_H_ */