#include <SimpleTimer.h>

SimpleTimer primeiroTempo(1000);

void setup() {
  // put your setup code here, to run once:
  pinMode(2, OUTPUT);
  digitalWrite(2, LOW);
  Serial.begin(115200);
}

void loop() {
  static uint16_t cont = 0;
  // put your main code here, to run repeatedly:

  //delay(2000);
  digitalWrite(2, HIGH);
  Serial.println(cont);
 // delay(2000);
  digitalWrite(2, LOW);
  Serial.println(cont);


  if(primeiroTempo.isReady()){
    cont++;
    primeiroTempo.reset();
  }
}