1
0
mirror of https://github.com/alinanorakari/Pebble-Watchface-Squared-1.0.git synced 2026-01-15 09:25:22 +01:00

added clean font

This commit is contained in:
2013-04-30 05:16:39 +02:00
parent cba538fe85
commit f07b2a1ec4

View File

@@ -20,7 +20,7 @@ Window window;
#define DIGIT_CHANGE_ANIM_DURATION 1700 #define DIGIT_CHANGE_ANIM_DURATION 1700
#define STARTDELAY 2000 #define STARTDELAY 2000
#define FONT blocks #define FONT blocks // blocks or clean. clean == numbers with no ornaments
typedef struct { typedef struct {
Layer layer; Layer layer;
@@ -37,77 +37,150 @@ Animation anim;
bool splashEnded = false; bool splashEnded = false;
unsigned char blocks[][5][5] = {{ unsigned char blocks[][5][5] = {{
{1,1,1,1,1}, {1,1,1,1,1},
{1,0,0,0,1}, {1,0,0,0,1},
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,0,0,1}, {1,0,0,0,1},
{1,1,1,1,1} {1,1,1,1,1}
}, { }, {
{1,1,0,1,1}, {1,1,0,1,1},
{0,0,0,0,1}, {0,0,0,0,1},
{1,1,1,0,1}, {1,1,1,0,1},
{0,0,0,0,1}, {0,0,0,0,1},
{1,1,1,0,1} {1,1,1,0,1}
}, { }, {
{1,1,1,1,1}, {1,1,1,1,1},
{0,0,0,0,1}, {0,0,0,0,1},
{1,1,1,1,1}, {1,1,1,1,1},
{1,0,0,0,0}, {1,0,0,0,0},
{1,1,1,1,1} {1,1,1,1,1}
}, { }, {
{1,1,1,1,1}, {1,1,1,1,1},
{0,0,0,0,1}, {0,0,0,0,1},
{0,1,1,1,1}, {0,1,1,1,1},
{0,0,0,0,1}, {0,0,0,0,1},
{1,1,1,1,1} {1,1,1,1,1}
}, { }, {
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,0,0,1}, {1,0,0,0,1},
{1,1,1,1,1}, {1,1,1,1,1},
{0,0,0,0,1}, {0,0,0,0,1},
{1,1,1,0,1} {1,1,1,0,1}
}, { }, {
{1,1,1,1,1}, {1,1,1,1,1},
{1,0,0,0,0}, {1,0,0,0,0},
{1,1,1,1,1}, {1,1,1,1,1},
{0,0,0,0,1}, {0,0,0,0,1},
{1,1,1,1,1} {1,1,1,1,1}
}, { }, {
{1,1,1,1,1}, {1,1,1,1,1},
{1,0,0,0,0}, {1,0,0,0,0},
{1,1,1,1,1}, {1,1,1,1,1},
{1,0,0,0,1}, {1,0,0,0,1},
{1,1,1,1,1} {1,1,1,1,1}
}, { }, {
{1,1,1,1,1}, {1,1,1,1,1},
{0,0,0,0,1}, {0,0,0,0,1},
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,1,0,1} {1,0,1,0,1}
}, { }, {
{1,1,1,1,1}, {1,1,1,1,1},
{1,0,0,0,1}, {1,0,0,0,1},
{1,1,1,1,1}, {1,1,1,1,1},
{1,0,0,0,1}, {1,0,0,0,1},
{1,1,1,1,1} {1,1,1,1,1}
}, { }, {
{1,1,1,1,1}, {1,1,1,1,1},
{1,0,0,0,1}, {1,0,0,0,1},
{1,1,1,1,1}, {1,1,1,1,1},
{0,0,0,0,1}, {0,0,0,0,1},
{1,1,1,1,1} {1,1,1,1,1}
}, { }, {
{1,1,1,1,1}, {1,1,1,1,1},
{0,0,0,0,0}, {0,0,0,0,0},
{1,1,1,1,1}, {1,1,1,1,1},
{0,0,0,0,0}, {0,0,0,0,0},
{1,1,1,1,1} {1,1,1,1,1}
}, { }, {
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,1,0,1}, {1,0,1,0,1},
{1,0,1,0,1} {1,0,1,0,1}
}};
unsigned char clean[][5][5] = {{
{1,1,1,1,1},
{1,0,0,0,1},
{1,0,0,0,1},
{1,0,0,0,1},
{1,1,1,1,1}
}, {
{0,0,0,1,1},
{0,0,0,0,1},
{0,0,0,0,1},
{0,0,0,0,1},
{0,0,0,0,1}
}, {
{1,1,1,1,1},
{0,0,0,0,1},
{1,1,1,1,1},
{1,0,0,0,0},
{1,1,1,1,1}
}, {
{1,1,1,1,1},
{0,0,0,0,1},
{0,1,1,1,1},
{0,0,0,0,1},
{1,1,1,1,1}
}, {
{1,0,0,0,1},
{1,0,0,0,1},
{1,1,1,1,1},
{0,0,0,0,1},
{0,0,0,0,1}
}, {
{1,1,1,1,1},
{1,0,0,0,0},
{1,1,1,1,1},
{0,0,0,0,1},
{1,1,1,1,1}
}, {
{1,1,1,1,1},
{1,0,0,0,0},
{1,1,1,1,1},
{1,0,0,0,1},
{1,1,1,1,1}
}, {
{1,1,1,1,1},
{0,0,0,0,1},
{0,0,0,0,1},
{0,0,0,0,1},
{0,0,0,0,1}
}, {
{1,1,1,1,1},
{1,0,0,0,1},
{1,1,1,1,1},
{1,0,0,0,1},
{1,1,1,1,1}
}, {
{1,1,1,1,1},
{1,0,0,0,1},
{1,1,1,1,1},
{0,0,0,0,1},
{1,1,1,1,1}
}, {
{1,1,1,1,1},
{1,1,1,1,1},
{1,1,1,1,1},
{1,1,1,1,1},
{1,1,1,1,1}
}, {
{1,1,1,1,1},
{1,1,1,1,1},
{1,1,1,1,1},
{1,1,1,1,1},
{1,1,1,1,1}
}}; }};
int startDigit[NUMSLOTS] = { int startDigit[NUMSLOTS] = {