#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..
//
// Written using LC_baseTools. Making Arduinos easier to code byte by byte.
// https://github.com/leftCoast/LC_baseTools
//
// Allocate global blinker objects.
blinker blinker1(2,100,200);
blinker blinker2(3,100,500);
blinker blinker3(4,700,900);
//blinker blinker4(5,50,250); // Uncomment to add blinker4 (line #1)
void setup() {
// Fire them up.
blinker1.setOnOff(true);
//blinker1.setPeriod(700); // Uncomment to change period of blinker1.
blinker1.setOnOff(true);
blinker2.setOnOff(true);
blinker3.setOnOff(true);
//blinker4.setOnOff(true); // Uncomment to add blinker4 (line #2)
}
void loop() { idle(); } // idle runs all the magic in the background.