feat: add debug touch drawing function and fix dashboard layout calculations

This commit is contained in:
2026-02-19 17:48:39 -08:00
parent a3164d722e
commit 4da32466a8
6 changed files with 13 additions and 4 deletions

View File

@@ -326,3 +326,9 @@ HoldState DisplayDriverTFT::updateHold(unsigned long holdMs) {
}
return h;
}
void DisplayDriverTFT::drawDebugTouch(int x, int y) {
const int size = 20;
_tft.drawLine(x - size, y, x + size, y, TFT_RED);
_tft.drawLine(x, y - size, x, y + size, TFT_RED);
}

View File

@@ -22,6 +22,9 @@ public:
void setLabelFont() override;
void setDefaultFont() override;
// Debug
void drawDebugTouch(int x, int y) override;
private:
void drawBoot(const ScreenState& st);
void drawAlert(const ScreenState& st);