![](/media/cache/profiles/e5815151957be36ad2085b7a1a02c5cc.jpg.50x50_q85.jpg)
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.
Examples/MPU6050_DMP6.h@2:42c4f3a7813f, 2016-01-31 (annotated)
- Committer:
- syundo0730
- Date:
- Sun Jan 31 14:12:13 2016 +0000
- Revision:
- 2:42c4f3a7813f
integrated the example for DMP and raw value
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
syundo0730 | 2:42c4f3a7813f | 1 | #ifndef _MPU6050_DMP_6_H_ |
syundo0730 | 2:42c4f3a7813f | 2 | #define _MPU6050_DMP_6_H_ |
syundo0730 | 2:42c4f3a7813f | 3 | |
syundo0730 | 2:42c4f3a7813f | 4 | namespace MPU6050DMP6 { |
syundo0730 | 2:42c4f3a7813f | 5 | void setup(); |
syundo0730 | 2:42c4f3a7813f | 6 | void loop(); |
syundo0730 | 2:42c4f3a7813f | 7 | }; |
syundo0730 | 2:42c4f3a7813f | 8 | |
syundo0730 | 2:42c4f3a7813f | 9 | #endif /* _MPU6050_DMP_6_H_ */ |