no buffer, but flickering removed

This commit is contained in:
Alexander Belov 2024-08-31 13:36:34 +07:00
parent de4af97026
commit c626cc904a

View File

@ -161,7 +161,7 @@ void handleProfileSelection() {
}
void displaySelection() {
oled.clear();
// oled.clear();
// Display all profiles with the selected one highlighted
for (int i = 0; i < (int) (sizeof(profiles) / sizeof(profiles[0])); i++) {
if (i == selectedProfileIndex) {
@ -235,7 +235,7 @@ void getPhaseAndTemperature() {
void printPhases() {
oled.clear();
// oled.clear();
if (isComplete) {
// Show completion time and current temperature instead of the title
@ -255,15 +255,19 @@ void printPhases() {
} else {
oled.setCursor(0, 0);
oled.print(activeProfile.name);
oled.print(" ");
}
// Display the totals and current state on the OLED
oled.setCursor(0, 1);
oled.print(" ");
oled.setCursor(18, 1);
formatTime(totalElapsedTime, timeBuffer);
oled.print(timeBuffer);
oled.print(" / ");
formatTime(totalProcessTime, timeBuffer);
oled.print(timeBuffer);
oled.print(" ");
for (int i = 0; i < activeProfile.numPhases; i++) {
@ -284,6 +288,7 @@ void printPhases() {
}
oled.print("c ");
oled.print(timeBuffer);
oled.print(" ");
} else {
oled.invertText(false); // Normal text for other phases
@ -294,6 +299,7 @@ void printPhases() {
oled.print(activeProfile.phases[i].temperature);
oled.print("c ");
oled.print(timeBuffer);
oled.print(" ");
}
}