grove_gyroscope
Embed:
(wiki syntax)
Show/hide line numbers
grove_gyroscope_class.h
00001 00002 00003 00004 #ifndef __GROVE_GYROSCOPE_CLASS_H__ 00005 #define __GROVE_GYROSCOPE_CLASS_H__ 00006 00007 #include "grove_gyroscope.h" 00008 00009 //GROVE_NAME "Grove_Gyroscope" 00010 //IF_TYPE I2C 00011 //IMAGE_URL http://www.seeedstudio.com/wiki/File:Gbgr.jpg 00012 00013 class GroveGyroscope 00014 { 00015 public: 00016 GroveGyroscope(int pinsda, int pinscl); 00017 bool write_setup(void); 00018 bool read_gyroscope(float *gx, float *gy, float *gz); 00019 bool write_zerocalibrate(void); 00020 00021 private: 00022 I2C_T *i2c; 00023 }; 00024 00025 #endif
Generated on Mon Jul 25 2022 20:30:13 by 1.7.2