![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Program for FRDM-64k for read five accelerometers
Dependencies: FXOS8700CQ LSM303D MMA8451Q MPU6050 mbed
Fork of fxos8700cq_example by
Diff: ADXL335/ADXL335.h
- Revision:
- 1:a7e3df03721c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ADXL335/ADXL335.h Thu Dec 01 08:28:52 2016 +0000 @@ -0,0 +1,21 @@ +#include "FXOS8700CQ.h" + +class ADXL335{ + public: + + + ADXL335(PinName analogX, PinName analogY, PinName analogZ); + void setScale(double scale); + double getScale(); + void getAcc(SRAWDATA &); + + private: + double _scale; + double zeroGX; + double zeroGY; + double zeroGZ; + AnalogIn X; + AnalogIn Y; + AnalogIn Z; + + }; \ No newline at end of file