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@0:0d6025d96c54, 2016-02-01 (annotated)
- Committer:
- syundo0730
- Date:
- Mon Feb 01 16:00:10 2016 +0000
- Revision:
- 0:0d6025d96c54
first commit
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 | } |