From 12bed846292ac87e75a9f0e7083141ea2586efde Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 30 Aug 2023 14:01:30 +0100 Subject: [PATCH] debugging --- display.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/display.cpp b/display.cpp index d0ce677..1d07b83 100644 --- a/display.cpp +++ b/display.cpp @@ -61,6 +61,11 @@ void Display::begin(colour_t bg, colour_t fg, orientation_t orient, unsigned dis _yoff = (_dy - dispy) / 2; _dx -= _xoff; _dy -= _yoff; + +#if defined(DEBUGGING) + Serial.printf("xoff %d yoff %d dx %d dy %d", _xoff, _yoff, _dx, _dy); + Serial.println(); +#endif } void Display::begin(colour_t bg, colour_t fg, orientation_t orient) { @@ -102,6 +107,12 @@ void Display::begin(colour_t bg, colour_t fg, orientation_t orient) { _cx = canvas.getFontInfo()->width; _dx = canvas.getWidth(); _dy = canvas.getHeight(); + + +#if defined(DEBUGGING) + Serial.printf("w %d h %d", _dx, _dy); + Serial.println(); +#endif #endif setColor(fg);