Error message:
Tested som sketces, but all produce the same error when this line appear:
HX scale (SCALE_DOUT_PIN, SCALE_SCK_PIN);
Here is the complete code for the Scale:
// change if your are using SSD1306
//#include <SSD1306Wire.h> #include <SH1106Wire.h> #include <OLEDDisplayFonts.h> #include <HX711.h>
// Scale Settings
const int SCALE_DOUT_PIN = D2;
const int SCALE_SCK_PIN = D3;
// Display Settings
const int I2C_DISPLAY_ADDRESS = 0x3c;
const int SDA_PIN = D6;
const int SDC_PIN = D7;
"HX711 scale(SCALE_DOUT_PIN, SCALE_SCK_PIN);"
// change if your are using SSD1306
SH1106Wire display(I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);
//SSD1306Wire display(I2C_DISPLAY_ADDRESS, SDA_PIN, SDC_PIN);
Have you looked at any of the examples for the HX711 to see how the scale is declared in those?
The first hit I get on google for HX711.h, for bogde/HX711, would declare the scale as follows, but the exact method is going to depend on which library you use