#include "blinker.h"

// So everyone wants newbies to write blink without delay. This is good
// because delay() is bad. Well, here's the simple way to do it..
// Allocate a global blinker object.

blinker aBlinker;          

void setup() {

   // Fire it up.
   aBlinker.setPeriod(100000.0);  // 100 sec, .01 hz
   aBlinker.setPercent(50);      // Duty cycle 50%
   aBlinker.setOnOff(true);      // Fire it up.

void loop() {

   // blinker is an idler. Calling idle() once in loop lets ALL idlers run.