no buffer, but flickering removed
This commit is contained in:
parent
de4af97026
commit
c626cc904a
@ -161,7 +161,7 @@ void handleProfileSelection() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void displaySelection() {
|
void displaySelection() {
|
||||||
oled.clear();
|
// oled.clear();
|
||||||
// Display all profiles with the selected one highlighted
|
// Display all profiles with the selected one highlighted
|
||||||
for (int i = 0; i < (int) (sizeof(profiles) / sizeof(profiles[0])); i++) {
|
for (int i = 0; i < (int) (sizeof(profiles) / sizeof(profiles[0])); i++) {
|
||||||
if (i == selectedProfileIndex) {
|
if (i == selectedProfileIndex) {
|
||||||
@ -235,7 +235,7 @@ void getPhaseAndTemperature() {
|
|||||||
|
|
||||||
|
|
||||||
void printPhases() {
|
void printPhases() {
|
||||||
oled.clear();
|
// oled.clear();
|
||||||
|
|
||||||
if (isComplete) {
|
if (isComplete) {
|
||||||
// Show completion time and current temperature instead of the title
|
// Show completion time and current temperature instead of the title
|
||||||
@ -255,15 +255,19 @@ void printPhases() {
|
|||||||
} else {
|
} else {
|
||||||
oled.setCursor(0, 0);
|
oled.setCursor(0, 0);
|
||||||
oled.print(activeProfile.name);
|
oled.print(activeProfile.name);
|
||||||
|
oled.print(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display the totals and current state on the OLED
|
// Display the totals and current state on the OLED
|
||||||
|
oled.setCursor(0, 1);
|
||||||
|
oled.print(" ");
|
||||||
oled.setCursor(18, 1);
|
oled.setCursor(18, 1);
|
||||||
formatTime(totalElapsedTime, timeBuffer);
|
formatTime(totalElapsedTime, timeBuffer);
|
||||||
oled.print(timeBuffer);
|
oled.print(timeBuffer);
|
||||||
oled.print(" / ");
|
oled.print(" / ");
|
||||||
formatTime(totalProcessTime, timeBuffer);
|
formatTime(totalProcessTime, timeBuffer);
|
||||||
oled.print(timeBuffer);
|
oled.print(timeBuffer);
|
||||||
|
oled.print(" ");
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0; i < activeProfile.numPhases; i++) {
|
for (int i = 0; i < activeProfile.numPhases; i++) {
|
||||||
@ -284,6 +288,7 @@ void printPhases() {
|
|||||||
}
|
}
|
||||||
oled.print("c ");
|
oled.print("c ");
|
||||||
oled.print(timeBuffer);
|
oled.print(timeBuffer);
|
||||||
|
oled.print(" ");
|
||||||
} else {
|
} else {
|
||||||
oled.invertText(false); // Normal text for other phases
|
oled.invertText(false); // Normal text for other phases
|
||||||
|
|
||||||
@ -294,6 +299,7 @@ void printPhases() {
|
|||||||
oled.print(activeProfile.phases[i].temperature);
|
oled.print(activeProfile.phases[i].temperature);
|
||||||
oled.print("c ");
|
oled.print("c ");
|
||||||
oled.print(timeBuffer);
|
oled.print(timeBuffer);
|
||||||
|
oled.print(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user