output power fixed
This commit is contained in:
parent
955ed4f727
commit
d3ab0202fa
@ -85,11 +85,13 @@ 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() {
|
||||
@ -274,7 +276,7 @@ void printPhases() {
|
||||
formatTime((currentTime - finishTime) / 1000, timeBuffer); // Time since completion
|
||||
oled.print(timeBuffer);
|
||||
oled.print(" ");
|
||||
oled.print(Input,1);
|
||||
oled.print(Input,0);
|
||||
oled.print("c");
|
||||
oled.print("->");
|
||||
oled.print((int)Setpoint);
|
||||
@ -296,7 +298,6 @@ 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
|
||||
@ -335,8 +336,8 @@ void printPhases() {
|
||||
oled.invertText(false); // Ensure text inversion is off after the loop
|
||||
|
||||
oled.setCursor(110,7);
|
||||
oled.print(Output*100,0);
|
||||
oled.print(" ");
|
||||
sprintf(timeBuffer, "%3d", (int)(Output*100));
|
||||
oled.print(timeBuffer);
|
||||
oled.update();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user