dd
Dependencies: xtoff2 RF24Network mbed
Fork of xtoff3 by
Diff: LoadCell.h
- Revision:
- 16:691649d8a3da
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LoadCell.h Wed Sep 05 07:50:27 2018 +0000 @@ -0,0 +1,39 @@ +#ifndef LoadCell_h +#define LoadCell_h + +#include "mbed.h" +#include "Maths.h" + +class LoadCell +{ +private: + AnalogIn ain; + int SAMPLE_AMOUNT; + float CALIBRATION_MASS; + float TARE_VALUE; + float CALIBRATION_VALUE; + float OFFSET; + float DOWN_OFFSET; + + +public: + LoadCell(PinName pin); + float analogRead(); + float simpleAnalogRead(); + float calculateMass(float value); + float tare(); + float tareDown(); + float callibrate(); + float mass(); + float simpleMass(); + void setCalibrationMass(int); + void setSampleAmount(int); + +}; + +#endif + + + + +