int contagem;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); // inicia porta serial
Serial.println("Tempo: ");
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.read()=='s'){
for(contagem=0; contagem<61; contagem++){
Serial.println(contagem);
delay(1000);
if(Serial.read()=='r'){
contagem = -1;
}
}
}
}