// declaração de variáveis
int tempo = 1000;
void setup() {
//identificar as entradas e saídas
pinMode(0, OUTPUT);
pinMode(1, OUTPUT);
}
void loop() {
// ligar a saída 0 e desligar a saída 1 por um tempo
digitalWrite(0, HIGH);
digitalWrite(1, LOW);
delay(tempo);
// ligar a saída 1 e desligar a saída 0 por um tempo
digitalWrite(0, LOW);
digitalWrite(1, HIGH);
delay(tempo);
tempo = tempo - 10;
}