diff --git a/PacoWatchyBahn.ino b/PacoWatchyBahn.ino index a1e95ac..13d9f15 100644 --- a/PacoWatchyBahn.ino +++ b/PacoWatchyBahn.ino @@ -83,7 +83,7 @@ class WatchFace : public Watchy { //inherit and extend Watchy class // Put the feet icon down display.drawBitmap(x, y, png_feet, 32, 32, fg); - textstring = "00000"; // prototype 6-digit number + textstring = "000000"; // prototype 6-digit number display.getTextBounds(textstring, 0, 0, &x1, &y1, &w, &h); // Now we know how wide a 6-digit number would be. We want to right-justify // our number. So figure out how wide 6 digits are, and subtract how wide @@ -91,7 +91,7 @@ class WatchFace : public Watchy { //inherit and extend Watchy class x = w; //hang on to width textstring = String(sensor.getCounter()); display.getTextBounds(textstring, 0, 0, &x1, &y1, &w, &h); - display.setCursor( x + 32 - w, y + 32 ); // add 32 because of icon, right justify + display.setCursor( x + 42 - w, y + 32 ); // add 32 because of icon, right justify display.print(textstring); } @@ -156,7 +156,7 @@ class WatchFace : public Watchy { //inherit and extend Watchy class display.print(textstring); } -#define BOXX (60) +#define BOXX (70) #define BOXY (50) void drawDate( uint8_t x, uint8_t y ) {