![](/media/cache/profiles/e5815151957be36ad2085b7a1a02c5cc.jpg.50x50_q85.jpg)
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.
main.cpp@1:30fb42e3ae76, 2016-02-01 (annotated)
- Committer:
- syundo0730
- Date:
- Mon Feb 01 16:14:10 2016 +0000
- Revision:
- 1:30fb42e3ae76
- Parent:
- 0:0d6025d96c54
added LICENSE file to MPU9150 folder
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
syundo0730 | 0:0d6025d96c54 | 1 | #include "MPU9150_raw.h" |
syundo0730 | 0:0d6025d96c54 | 2 | |
syundo0730 | 0:0d6025d96c54 | 3 | int main() { |
syundo0730 | 0:0d6025d96c54 | 4 | MPU9150raw::setup(); |
syundo0730 | 0:0d6025d96c54 | 5 | while(1) { |
syundo0730 | 0:0d6025d96c54 | 6 | MPU9150raw::loop(); |
syundo0730 | 0:0d6025d96c54 | 7 | } |
syundo0730 | 0:0d6025d96c54 | 8 | } |