#include <blinker.h>
#include <serialStr.h>

#define PERIOD_MS 1000

blinker     aBLinker;             
serialStr   comReader;


void setup() {

   Serial.begin(115200);
   Serial.println("Type number for new PW %");
   aBLinker.setPeriod(PERIOD_MS);
   aBLinker.setPercent(50);
   aBLinker.setOnOff(true);
   comReader.setCallback(gotCom);
}


void gotCom(char* inStr) {

   float percent;

   percent = atof(inStr);
   Serial.print("Setting percent to : ");
   Serial.println(percent,2);
   aBLinker.setPercent(percent);
}


void loop() { idle(); }