Commit ed255e4e authored by João Lino's avatar João Lino

Added soft heating element disable feature. Used for testing

parent 1d6b0b27
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
//#define DEBUG //#define DEBUG
#define INFO #define INFO
#define HEATING_ELEMENT_ALWAYS_OFF
// ######################### LIBRARIES ######################### // ######################### LIBRARIES #########################
#include "brew.h" #include "brew.h"
...@@ -90,6 +91,11 @@ volatile boolean onISR = false; ...@@ -90,6 +91,11 @@ volatile boolean onISR = false;
unsigned long rotarySwDetectTime; unsigned long rotarySwDetectTime;
// ++++++++++++++++++++++++ Heating Element Relay ++++++++++++++++++++++++ // ++++++++++++++++++++++++ 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 int iWindowSize; // Time frame to operate in
unsigned long windowStartTime; unsigned long windowStartTime;
...@@ -121,8 +127,6 @@ Temperature downPT100("down", ...@@ -121,8 +127,6 @@ Temperature downPT100("down",
PT100_DOWN_TIME_BETWEEN_READINGS, PT100_DOWN_TIME_BETWEEN_READINGS,
2.0309, 2.0288, 658.15, 655.35); 2.0309, 2.0288, 658.15, 655.35);
HeatingElement heatingElement(HEATING_ELEMENT_OUTPUT_PIN, LOW, HIGH);
// ######################### INTERRUPTS ######################### // ######################### INTERRUPTS #########################
void isr () { // Interrupt service routine is executed when a HIGH to LOW transition is detected on CLK void isr () { // Interrupt service routine is executed when a HIGH to LOW transition is detected on CLK
unsigned long interruptTime = millis(); unsigned long interruptTime = millis();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment