Alright,
So I downloaded it from their website and it solved the problem for the HX711Serial example from the library.
That being said, the problem persists for the calibration code provided by Sparkfun. I still have this error: SparkFun_HX711_Calibration:41:7: error: no matching function for call to ‘HX711::HX711()’
Being the ameteur coder I am, I simply removed the problematic parts of the Sparkfun code and replaced those parts with the working parts from the HX711Serial example code. That gave me this:
#include “HX711.h”
// HX711.DOUT - pin #A1
// HX711.PD_SCK - pin #A0
HX711 scale(A1, A0); // parameter “gain” is ommited; the default value 128 is used by the library
float calibration_factor = -7050; //-7050 worked for my 440lb max scale setup
void setup() {
Serial.begin(9600);
Serial.println(“HX711 calibration sketch”);
Serial.println(“Remove all weight from scale”);
Serial.println(“After readings begin, place known weight on scale”);
Serial.println(“Press + or a to increase calibration factor”);
Serial.println(“Press - or z to decrease calibration factor”);
long zero_factor = scale.read_average(); //Get a baseline reading
Serial.print("Zero factor: "); //This can be used to remove the need to tare the scale. Useful in permanent scale projects.
Serial.println(zero_factor);
}
void loop() {
scale.set_scale(calibration_factor); //Adjust to this calibration factor
Serial.print("Reading: ");
Serial.print(scale.get_units(), 1);
Serial.print(" lbs"); //Change this to kg and re-adjust the calibration factor if you follow SI units like a sane person
Serial.print(" calibration_factor: ");
Serial.print(calibration_factor);
Serial.println();
if(Serial.available())
{
char temp = Serial.read();
if(temp == ‘+’ || temp == ‘a’)
calibration_factor += 10;
else if(temp == ‘-’ || temp == ‘z’)
calibration_factor -= 10;
}
}
As far as I can tell, it works. I still have to calibrate it but it gives me actual readings. Could you please compare this code above with the original Sparkfun calibration code to see what I did and if my changes messed things up? Thank you.