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 @@
//#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();
......
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