grove_accelerometer

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers grove_accelerometer_class.h Source File

grove_accelerometer_class.h

00001 
00002 
00003 
00004 #ifndef __GROVE_ACCELERMETER_CLASS_H__
00005 #define __GROVE_ACCELERMETER_CLASS_H__
00006 
00007 #include "grove_accelerometer.h"
00008 
00009 //GROVE_NAME        "Grove_Accelerometer"
00010 //IF_TYPE           I2C
00011 //IMAGE_URL         http://www.seeedstudio.com/wiki/images/b/bb/3_aix_acc.jpg
00012 
00013 class GroveAccelerometer
00014 {
00015 public:
00016     GroveAccelerometer(int pinsda, int pinscl);
00017     bool write_setup(void);
00018     bool read_accelerometer(float *ax, float *ay, float *az);
00019     
00020 private:
00021     I2C_T *i2c;
00022 };
00023 
00024 #endif