From 8477942be82cf88a5f9fe2678e6e9ac5793fb93c Mon Sep 17 00:00:00 2001 From: Clement Date: Tue, 2 May 2023 21:52:59 +0200 Subject: [PATCH] fix main --- IOT/src/main.cpp | 42 +++++------------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/IOT/src/main.cpp b/IOT/src/main.cpp index b403c05..2ab92c1 100644 --- a/IOT/src/main.cpp +++ b/IOT/src/main.cpp @@ -1,47 +1,15 @@ #ifndef TESTING #include -// #include "Program.h" +#include "Program.h" -// Program* program; - -// void setup() { -// program = new Program(); -// } - -// void loop() { -// program->loop(); -// } - - -#include "Balance.h" - -Balance *balance; - -void setup(){ - Serial.begin(MONITOR_SPEED); - balance = new Balance(14,15); - - Serial.print("start calibr : "); - balance->initCalibration(); - - Serial.println("OK"); - - // Serial.print("posé poids"); - // delay(5000); - // Serial.println("OK"); - // balance->calibration(500, MOYENNE_CALIBRATION); - // Serial.println("END calibration"); - - balance->setCalibrationFact(1077); +Program* program; void setup() { - program = new Program(); + program = new Program(); } -void loop(){ - // delay(500); - Serial.println(balance->getValue()); +void loop() { + program->loop(); } - #endif \ No newline at end of file