diff --git a/brew.ino b/brew.ino index ff760f4129da499d2c6b5358fdd2a15441893fe7..2e22b03be7234c98adb5af33fa0269cc2784ccd6 100644 --- a/brew.ino +++ b/brew.ino @@ -6,6 +6,7 @@ //#define DEBUG #define INFO +#define HEATING_ELEMENT_ALWAYS_OFF // ######################### LIBRARIES ######################### #include "brew.h" @@ -90,6 +91,11 @@ volatile boolean onISR = false; unsigned long rotarySwDetectTime; // ++++++++++++++++++++++++ Heating Element Relay ++++++++++++++++++++++++ +#ifdef HEATING_ELEMENT_ALWAYS_OFF +HeatingElement heatingElement(HEATING_ELEMENT_OUTPUT_PIN, LOW, LOW); +#else +HeatingElement heatingElement(HEATING_ELEMENT_OUTPUT_PIN, LOW, HIGH); +#endif /* int iWindowSize; // Time frame to operate in unsigned long windowStartTime; @@ -121,8 +127,6 @@ Temperature downPT100("down", PT100_DOWN_TIME_BETWEEN_READINGS, 2.0309, 2.0288, 658.15, 655.35); -HeatingElement heatingElement(HEATING_ELEMENT_OUTPUT_PIN, LOW, HIGH); - // ######################### INTERRUPTS ######################### void isr () { // Interrupt service routine is executed when a HIGH to LOW transition is detected on CLK unsigned long interruptTime = millis();