32 #define ADXL335_DEFAULT_AREF 5.0
33 #define ADXL335_SENSITIVITY 0.25 // 0.25v/g
71 ADXL335(
int pinX,
int pinY,
int pinZ,
float aref=ADXL335_DEFAULT_AREF);
83 void setZeroX(
float zeroX) { m_zeroX = zeroX; };
90 void setZeroY(
float zeroY) { m_zeroY = zeroY; };
97 void setZeroZ(
float zeroZ) { m_zeroZ = zeroZ; };
106 void values(
int *xVal,
int *yVal,
int *zVal);
124 void acceleration(
float *xAccel,
float *yAccel,
float *zAccel);
142 mraa_aio_context m_aioX;
143 mraa_aio_context m_aioY;
144 mraa_aio_context m_aioZ;
146 float m_zeroX, m_zeroY, m_zeroZ;
void calibrate()
Definition: adxl335.cxx:113
void setZeroZ(float zeroZ)
Definition: adxl335.h:97
~ADXL335()
Definition: adxl335.cxx:66
ADXL335(int pinX, int pinY, int pinZ, float aref=ADXL335_DEFAULT_AREF)
Definition: adxl335.cxx:37
void setZeroY(float zeroY)
Definition: adxl335.h:90
void setZeroX(float zeroX)
Definition: adxl335.h:83
void values(int *xVal, int *yVal, int *zVal)
Definition: adxl335.cxx:73
void acceleration(float *xAccel, float *yAccel, float *zAccel)
Definition: adxl335.cxx:89
API for the ADXL335 3-Axis Analog Accelerometer.
Definition: adxl335.h:61