Compare commits

..

No commits in common. "e214e5b59dd336714c71241a80bc2db8fff491f5" and "955ed4f7273bb77383408e8fcb7102b6cff01bad" have entirely different histories.

View File

@ -47,7 +47,6 @@ struct Profile {
Profile profiles[] = {
{"Chickpeas", 3, {{47, 120}, {53, 120}, {65, 180}, {72, 90}, {90, 90}}, 5},
{"Lentils", 3, {{47, 120}, {53, 120}, {65, 180}, {72, 90}, {90, 15}}, 5},
{"Lentils: Gradual", 10, {{48, 120}, {80, 60}}, 2},
{"Wheat", 3, {{47, 60}, {53, 60}, {65, 20}, {72, 20}, {85, 20}}, 5},
{"Veggies Sous Vide", 2, {{55, 30}, {85, 120}}, 2},
{"Test", 1, {{49, 1}, {51, 1}}, 2},
@ -86,13 +85,11 @@ char timeBuffer[10];
void setup() {
pinMode(ssrPin, OUTPUT);
Serial.begin(9600);
oled.init(); // Initialize the OLED
oled.clear(); // Clear the display
readEEPROM();
myPID.SetMode(AUTOMATIC);
myPID.SetOutputLimits(0, 1);
}
void loop() {
@ -277,7 +274,7 @@ void printPhases() {
formatTime((currentTime - finishTime) / 1000, timeBuffer); // Time since completion
oled.print(timeBuffer);
oled.print(" ");
oled.print(Input,0);
oled.print(Input,1);
oled.print("c");
oled.print("->");
oled.print((int)Setpoint);
@ -299,6 +296,7 @@ void printPhases() {
oled.print(timeBuffer);
oled.print(" ");
for (int i = 0; i < activeProfile.numPhases; i++) {
if (i == currentPhase) {
oled.invertText(true); // Invert text for the current phase
@ -337,8 +335,8 @@ void printPhases() {
oled.invertText(false); // Ensure text inversion is off after the loop
oled.setCursor(110,7);
sprintf(timeBuffer, "%3d", (int)(Output*100));
oled.print(timeBuffer);
oled.print(Output*100,0);
oled.print(" ");
oled.update();
}