28 #include <mraa/gpio.h>
66 HX711(uint8_t data, uint8_t sck, uint8_t gain = 128);
86 void setGain(uint8_t gain = 128);
100 double getValue(uint8_t times = 10);
113 void tare(uint8_t times = 10);
122 mraa_gpio_context m_sckPinCtx;
123 mraa_gpio_context m_dataPinCtx;
126 unsigned long OFFSET;
135 void setOffset(
long offset = 0);
void setGain(uint8_t gain=128)
Definition: hx711.cxx:100
unsigned long read()
Definition: hx711.cxx:77
void setScale(float scale=1.f)
Definition: hx711.cxx:138
double getValue(uint8_t times=10)
Definition: hx711.cxx:125
unsigned long readAverage(uint8_t times=10)
Definition: hx711.cxx:117
float getUnits(uint8_t times=1)
Definition: hx711.cxx:129
HX711(uint8_t data, uint8_t sck, uint8_t gain=128)
Definition: hx711.cxx:33
API for the HX711 Analog-to-Digital Converter.
Definition: hx711.h:56
~HX711()
Definition: hx711.cxx:63
void tare(uint8_t times=10)
Definition: hx711.cxx:133