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.h
- Revision:
- 3:9bbfb7f8c751
- Parent:
- 2:f118f8c456a4
--- a/Hx711.h Thu Jun 23 09:59:29 2016 +0000 +++ b/Hx711.h Thu Jun 23 10:20:13 2016 +0000 @@ -69,7 +69,7 @@ * @return float */ float read() { - convert_to_real(readRaw()); + return convert_to_real(readRaw()); } /** @@ -146,8 +146,6 @@ private: - static const uint8_t LSBFIRST = 0; // least significant bit first - static const uint8_t MSBFIRST = 1; // most significant bit first static const uint8_t LOW = 0; // digital low static const uint8_t HIGH = 1; // digital high @@ -160,10 +158,9 @@ /** * Port of the Arduino shiftIn function; shifts a byte one bit at a time - * @param bit_order LSBFIRST or MSBFIRST * @return incoming but */ - uint8_t shiftIn(uint8_t bit_order); + uint8_t shiftInMsbFirst(); }; #endif \ No newline at end of file