Processing-like framework for Pebble Smartwatch. Let's sketch a watchface with code!
void setup() {
noLoop();
}
void draw() {
fill(BLACK);
int d = day(); // Values from 1 - 31
// C-style string
char str[10];
snprintf(str, 10, "Day: %d", d);
text(str, 10, 28);
}
// The dayEvent() function is called every day.
// Define ENABLE_DAY_EVENT in settings.h, if you use this function.
void dayEvent() {
redraw();
}
The dayEvent() function is called when the date is changed. If you use this function, you have to define "ENABLE_DAY_EVENT" at settings.h.
dayEvent()
void
hourEvent()
minuteEvent()
secondEvent()