#include "Ticker.h"
//void printCounter();
void blink();
bool ledState;
bool arresto = 0;
//int counterUS;
//Ticker timer1(printCounter, 1000, 0, MILLIS);
//Ticker timer2(printCounter, 60000, 0, MILLIS);
Ticker timer4(blink, 1000);
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
// delay(2000);
// timer1.start();
// timer2.start();
timer4.start();
}
void loop() {
//timer1.update();
//timer2.update();
timer4.update();
if (timer4.counter() == 7) timer4.stop();
// if (timer4.counter() == 30) timer4.interval(200);
// if (timer4.counter() == 80) timer4.interval(1000);
}
/*
void printCounter() {
Serial.print("Second Counter ");
Serial.println(timer1.counter());
//Serial.print("Minute Counter ");
//Serial.println(timer2.counter());
}
*/
void blink() {
digitalWrite(LED_BUILTIN, ledState);
ledState = !ledState;
}