Error message when compiling a scale program with HX711

Hi!
I try to make a scale program having the HX711 in the program.

Tested som sketces, but all produce the same error when this line appear:
HX scale (SCALE_DOUT_PIN, SCALE_SCK_PIN);

Error message:

no matching function for call to "HX711:HX711(const int, const int)"

Any recommendations?

Any recommendations?

Post your code.
Post the entire text of the error message. Paraphrasing the error message leaves out important information.

Read the how to use this forum sticky to see how to properly post code and error messages.

Try one of the example programs with the HX711 library .

Hi!

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);

void setup() {
Serial.begin(115200);
display.init();
display.flipScreenVertically();
scale.set_scale(-47941.0 / 2.122);
scale.tare();
}

void loop() {
String weight = String(scale.get_units(1), 2);
Serial.println(weight);
display.setFont(ArialMT_Plain_24);
display.setTextAlignment(TEXT_ALIGN_LEFT);
display.clear();
display.drawString(0, 0, weight);
display.display();
}

Which library are you using for the HX711?

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

HX711 scale;

and in the setup() section:

scale.begin(SCALE_DOUT_PIN, SCALE_SCK_PIN);