Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: POF_force_angle_copy
Revision 3:99fd973e73c4, committed 2019-06-14
- Comitter:
- jonathansata
- Date:
- Fri Jun 14 12:30:38 2019 +0000
- Parent:
- 2:810db37ddcbc
- Commit message:
- load cell and POF
Changed in this revision
HX711.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/HX711.h Sat Apr 13 05:55:06 2019 +0000 +++ b/HX711.h Fri Jun 14 12:30:38 2019 +0000 @@ -36,14 +36,14 @@ HX711(PinName , PinName ,uint8_t gain = 128); ~HX711(); int getValue(void); - int averageValue(uint8_t times = 25 ); + int averageValue(uint8_t times = 1 ); //25 void setOffset(int offset); void setScale(float scale = 1990.f); - float getGram(uint8_t times = 5); + float getGram(uint8_t times = 1); //5 void setGain(uint8_t gain); void powerDown(); void powerUp(); - void tare(uint8_t times = 10); + void tare(uint8_t times = 1); // 10 private: