Projeto

Geral

Perfil

Pisca Pisca simples2 » Pisca_Pisca_simples.ino

Gustavo Claudio Karl Couto, 13/03/2017 19:10 h

 
void setup() {
// put your setup code here, to run once:
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);
pinMode(12,OUTPUT);
}

void loop()
{
int numero;
numero = 500;
digitalWrite(12,HIGH);
digitalWrite(11,LOW);
digitalWrite(9,LOW);
digitalWrite(10,LOW);
delay(numero);

digitalWrite(12,LOW);
digitalWrite(11,HIGH);
digitalWrite(9,LOW);
digitalWrite(10,LOW);
delay(numero);

digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(9,HIGH);
digitalWrite(10,LOW);
delay(numero);

digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(9,LOW);
digitalWrite(10,HIGH);
delay(numero);

digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(9,LOW);
digitalWrite(10,HIGH);
delay(numero);
digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(9,HIGH);
digitalWrite(10,LOW);
delay(numero);

digitalWrite(12,LOW);
digitalWrite(11,HIGH);
digitalWrite(9,LOW);
digitalWrite(10,LOW);
delay(numero);

digitalWrite(12,HIGH);
digitalWrite(11,LOW);
digitalWrite(9,LOW);
digitalWrite(10,LOW);
delay(numero);

}
(1-1/2)