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();
}
Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.