watch_test.pde
#include "MakerBotWatch.h" MakerBotWatch watch; void setup() { } void loop() { // speed up time by a factor of 600!!! uint32_t now = millis() / 100; // time runs at normal speed // uint32_t now = millis() / 60000; int8_t hours = (now / 60) % 12; int8_t minutes = now % 60; watch.setTime(hours, minutes); watch.showTime(); }
page revision: 0, last edited: 18 Dec 2009 01:32