28 #include <mraa/gpio.h> 66 HX711(
int data,
int 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
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
double getValue(uint8_t times=10)
Definition: hx711.cxx:125
HX711(int data, int sck, uint8_t gain=128)
Definition: hx711.cxx:33
unsigned long readAverage(uint8_t times=10)
Definition: hx711.cxx:117
float getUnits(uint8_t times=1)
Definition: hx711.cxx:129
API for the HX711 Analog-to-Digital Converter.
Definition: hx711.hpp:56
~HX711()
Definition: hx711.cxx:63
void tare(uint8_t times=10)
Definition: hx711.cxx:133