fix grap position

This commit is contained in:
Tomislav Kopić 2024-11-28 19:41:52 +01:00
parent 1b35c285df
commit 1558beaaf2

View File

@ -174,11 +174,11 @@ void displayProblems() {
display.print("X"); display.print("X");
} }
display.drawLine(0, 45, 127, 45, 1); // Line under the graph display.drawLine(0, 45, 127, 45, 1); // Line under the graph
display.drawLine(0, 10, 127, 10, 1); // Line under the graph display.drawLine(0, 9, 127, 9, 1); // Line under the graph
// Draw the history graph // Draw the history graph
int graphHeight = 30; // Height of the graph int graphHeight = 30; // Height of the graph
int graphTop = 15; // Top position of the graph int graphTop = 14; // Top position of the graph
int graphBottom = graphTop + graphHeight; int graphBottom = graphTop + graphHeight;
int maxProblems = *std::max_element(problemHistory, problemHistory + maxHistorySize); // Find max for scaling int maxProblems = *std::max_element(problemHistory, problemHistory + maxHistorySize); // Find max for scaling