Skip to content

Commit

Permalink
removing disengage/engage heater abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkusprime committed Apr 16, 2016
1 parent 00e4ef3 commit 8370c48
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions sousvido.ino
Expand Up @@ -225,7 +225,7 @@ void loop() {
void pause() {
digitalWrite(ReadyLEDPin, LOW);
myPID.SetMode(MANUAL);
disengageHeaters();
digitalWrite(HeaterPin, LOW);
printLCD(" --- PAUSED --- ", "");
}

Expand All @@ -240,7 +240,7 @@ void prime() {
printTemps();
digitalWrite(ReadyLEDPin, LOW);
myPID.SetMode(MANUAL);
engageHeaters();
digitalWrite(HeaterPin, HIGH);
}


Expand All @@ -254,7 +254,7 @@ void rest() {
printTemps();
digitalWrite(ReadyLEDPin, LOW);
myPID.SetMode(MANUAL);
disengageHeaters();
digitalWrite(HeaterPin, LOW);
}


Expand Down Expand Up @@ -333,9 +333,9 @@ void driveOutputAsync() {
windowStartTime += windowSize;
}
if((pidOutput > 100) && (pidOutput > (now - windowStartTime))) {
engageHeaters();
digitalWrite(HeaterPin, HIGH);
} else {
disengageHeaters();
digitalWrite(HeaterPin, LOW);
}
}
}
Expand Down Expand Up @@ -367,28 +367,6 @@ void printLCD(String lineOne, String lineTwo) {



// ============================================================================
// = disengageHeaters =
// = ---------------- =
// = Turns off the heaters via HeaterPin =
// ============================================================================
void disengageHeaters() {
digitalWrite(HeaterPin, LOW);
}



// ============================================================================
// = engageHeaters =
// = ------------- =
// = Turns on the heaters via HeaterPin =
// ============================================================================
void engageHeaters() {
digitalWrite(HeaterPin, HIGH);
}



// ============================================================================
// = playReadyBuzzer =
// = --------------- =
Expand Down

0 comments on commit 8370c48

Please sign in to comment.