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