feat: add debug touch drawing function and fix dashboard layout calculations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user