grove_gyroscope
Diff: grove_gyroscope_class.h
- Revision:
- 0:d4c2464a3868
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/grove_gyroscope_class.h Tue Jun 09 10:18:45 2015 +0000 @@ -0,0 +1,25 @@ + + + +#ifndef __GROVE_GYROSCOPE_CLASS_H__ +#define __GROVE_GYROSCOPE_CLASS_H__ + +#include "grove_gyroscope.h" + +//GROVE_NAME "Grove_Gyroscope" +//IF_TYPE I2C +//IMAGE_URL http://www.seeedstudio.com/wiki/File:Gbgr.jpg + +class GroveGyroscope +{ +public: + GroveGyroscope(int pinsda, int pinscl); + bool write_setup(void); + bool read_gyroscope(float *gx, float *gy, float *gz); + bool write_zerocalibrate(void); + +private: + I2C_T *i2c; +}; + +#endif