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