#include "LoadCellSensor.h"
#define DT_PIN 34
#define SCK_PIN 33
LoadCellSensor loadCellSensor(DT_PIN, SCK_PIN);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
loadCellSensor.init();
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
Serial.print("one reading:\t");
Serial.println(loadCellSensor.readWeight, 1);
Serial.print("\t| average:\t");
Serial.println(loadCellSensor.readAverage, 1);
loadCellSensor.pwDown();
delay(5000);
loadCellSensor.pwUp();
}