#include "Automation.h"
#include "atm_hx711.cpp"
#define DEBUG 0 // This toggles the debug() statements 1 for on, or 0 for off.
#if DEBUG == 1
#define debug(x) Serial.print(x); // Use debug(x) to toggle Serial.print
#define debugln(x) Serial.println(x);
#else // Else the the compiler does not generate Serial.print statements
#define debug(x)
#define debugln(x)
#endif
// Buttons
const int BTN1_PIN = 15; // start measuring the weihgt
const int BTN2_PIN = 4; // finish measuring the weihgt
const int DT_PIN = 12;
const int SCK_PIN = 13;
atm_hx711 hx711_measure;
void setup() {
int i = 2;
Serial.begin(115200);
delay(300);
Serial.println("Start setup");
hx711_measure.trace( Serial );
delay(300);
hx711_measure.begin( BTN1_PIN, BTN2_PIN );
Serial.println(F("Setup ready:"));
}
void loop() {
//debugln("running");
automaton.run();
}
servo 1 open close