From ed255e4edfeb5266362176fc985402e59de6348b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lino?= Date: Sun, 11 Feb 2018 16:33:41 +0000 Subject: [PATCH] Added soft heating element disable feature. Used for testing --- brew.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/brew.ino b/brew.ino index ff760f4..2e22b03 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(); -- 2.24.1