Library to read out HX711 24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales by AVIA Semiconductor. Tested with K22F with SCK pint at D13 and DT pin at D12
Diff: Hx711.cpp
- Revision:
- 4:f59264464b5b
- Parent:
- 3:9bbfb7f8c751
- Child:
- 5:16627e96c8de
diff -r 9bbfb7f8c751 -r f59264464b5b Hx711.cpp --- a/Hx711.cpp Thu Jun 23 10:20:13 2016 +0000 +++ b/Hx711.cpp Thu Jun 23 12:45:26 2016 +0000 @@ -33,6 +33,7 @@ data[1] = shiftInMsbFirst(); data[0] = shiftInMsbFirst(); + // TODO: this costs a significant amount of time; should not be done! // set the channel and the gain factor for the next reading using the clock pin for (unsigned int i = 0; i < gain_; i++) { sck_.write(HIGH);