diff --git a/squared_screen_eu.png b/squared_screen_eu.png new file mode 100644 index 0000000..eed2e4e Binary files /dev/null and b/squared_screen_eu.png differ diff --git a/squared_screen_eu_zero.png b/squared_screen_eu_zero.png new file mode 100644 index 0000000..00eb22b Binary files /dev/null and b/squared_screen_eu_zero.png differ diff --git a/squared_screen_zero.png b/squared_screen_zero.png new file mode 100644 index 0000000..72dae7f Binary files /dev/null and b/squared_screen_zero.png differ diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/src/.DS_Store differ diff --git a/src/squared.c b/src/squared.c index ddcca88..fd08b6c 100644 --- a/src/squared.c +++ b/src/squared.c @@ -11,7 +11,8 @@ PBL_APP_INFO(MY_UUID, Window window; -#define US_DATE false // true == MM/DD, false == DD/MM +#define US_DATE true // true == MM/DD, false == DD/MM +#define NO_ZERO true // false == replaces leading Zero for hour, day, month with a "cycler" #define TILE_SIZE 10 #define NUMSLOTS 8 #define SPACING_X TILE_SIZE @@ -251,22 +252,24 @@ void handle_tick(AppContextRef ctx, PebbleTickEvent *evt) { slot[7].curDigit = mo%10; } - if (slot[0].curDigit == 0) { - slot[0].curDigit = 10; - if (slot[0].prevDigit == 10) { - slot[0].curDigit++; + if (NO_ZERO) { + if (slot[0].curDigit == 0) { + slot[0].curDigit = 10; + if (slot[0].prevDigit == 10) { + slot[0].curDigit++; + } } - } - if (slot[4].curDigit == 0) { - slot[4].curDigit = 10; - if (slot[4].prevDigit == 10) { - slot[4].curDigit++; + if (slot[4].curDigit == 0) { + slot[4].curDigit = 10; + if (slot[4].prevDigit == 10) { + slot[4].curDigit++; + } } - } - if (slot[6].curDigit == 0) { - slot[6].curDigit = 10; - if (slot[6].prevDigit == 10) { - slot[6].curDigit++; + if (slot[6].curDigit == 0) { + slot[6].curDigit = 10; + if (slot[6].prevDigit == 10) { + slot[6].curDigit++; + } } } animation_schedule(&anim);