moving things a little

main
Paco Hope 2022-04-05 18:46:55 -04:00
parent cdb56a9508
commit ae854a7312
1 changed files with 3 additions and 3 deletions

View File

@ -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 ) {