Download this file
#include "blinker.h"

bool Blinker::canRun(uint32_t now) {
  return sensor->calibrating && (int32_t) (runTime - millis()) < 0;
}

void Blinker::run(uint32_t now) {
  light_on = !light_on;
  digitalWrite(RED_LED_PIN, light_on);
  digitalWrite(GREEN_LED_PIN, LOW);
  incRunTime(rate*100);
}

// vim:ft=arduino