This is a library of MPU-9250 9 axis sensor.
Hi,I'm Wataru Nakata. I am a student of Nagaoka National College of Technology ,JAPAN . I am a member of robotics club. So I'm using mbeds for robot controlling.
MPU-9250.h
- Committer:
- WAT34
- Date:
- 2015-02-26
- Revision:
- 0:f29582d9e1fd
- Child:
- 2:2bc5dd0ab0f0
File content as of revision 0:f29582d9e1fd:
#ifndef LIS3DH #define LIS3DH #define addr 0xD0 #define raddr 0xD1 #define maddr 0x18 #define mraddr 0x19 #include "mbed.h" #define pi 3.1415926535 class degree { public: degree (PinName sda , PinName scl ); int start(void); void read_data(int a,double *x,double *y,double *z); private: I2C i2c; char bdf[2]; }; #endif