![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
dd
Dependencies: xtoff2 RF24Network mbed
Fork of xtoff3 by
LoadCell.h
- Committer:
- gimohd
- Date:
- 2018-09-05
- Revision:
- 16:691649d8a3da
File content as of revision 16:691649d8a3da:
#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