fix main
This commit is contained in:
parent
493e571e32
commit
8477942be8
@ -1,47 +1,15 @@
|
||||
#ifndef TESTING
|
||||
|
||||
#include <Arduino.h>
|
||||
// #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();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// delay(500);
|
||||
Serial.println(balance->getValue());
|
||||
program->loop();
|
||||
}
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user