change code by hasegawa
jy901.h
- Committer:
- number_key
- Date:
- 2017-08-23
- Revision:
- 0:f80d034ed481
- Child:
- 1:60d4e2eb6952
File content as of revision 0:f80d034ed481:
#ifndef MBED_JY901_H #define MBED_JY901_H #include "mbed.h" #include "jy901_def.h" class JY901 : public I2C { public: JY901(PinName sda, PinName scl); void calibrateGyroAccel(); void calibrateMagnetic(); void calibrateHeight(); void endCalibrate(); void calibrateAll(int time); float getXaxisAcceleration(); float getYaxisAcceleration(); float getZaxisAcceleration(); float getXaxisAngularVelocity(); float getYaxisAngularVelocity(); float getZaxisAngularVelocity(); float getXaxisMagnetic(); float getYaxisMagnetic(); float getZaxisMagnetic(); float getXaxisAngle(); float getYaxisAngle(); float getZaxisAngle(); private: char *getdata(char registar); }; #endif