Imagem de NICOLY  BELTRÃO LEITE DE ASSIS
CÓDIGO PARAO PROJETO 3 .
por NICOLY BELTRÃO LEITE DE ASSIS - sexta, 25 agosto 2017, 16:04
 

// Projeto 3  - Semáforo 


int ledDelay = 10000;   // espera entre as alterações

int redPin = 10;

int yellowPin = 9;

int greenPin = 8;

 

void setup() {

pinMode(redPin, OUTUP);

pinMode(yellowPin, OUTUP);

pinMode(greenPin, OUTUP);

}

void loop() {

digitalWrite(redPin, HIGH);     // acendendo a luz vermelha

delay(ledDelay) ;                    // espera 5 segundos


digitalwrite(yeloowPin, HIGH);  // apaga a luz amarela

delay((2000) ;   // acende a luz verde

 digitalWrite(greenPin, HIGH);     //  apaga luz vermelha

digitalWrrite(yellowPin,  LOW);  // apaga a luz amarela

delay(ledDELAY);      // espera ledDELAY milissegundos

digitalWrite(yellowPin, HIGH)      // acendendo a luz amarela

digitalWrite(yelloPin)  HIGH        // apaga a luz verde

delay(2000);            // espera 2 segundos

digitalWrite(yellowPin,  low     // apaga a luz verde

                                            // agora nosso loop se repete

}

 

Roberto Dambros
Re: CÓDIGO PARAO PROJETO 3 .
por Roberto Dambros - sexta, 25 agosto 2017, 16:32
 

sketch_aug25f.ino: In function 'void setup()':
sketch_aug25f:16: error: 'OUTUP' was not declared in this scope
sketch_aug25f.ino: In function 'void loop()':
sketch_aug25f:31: error: 'yeloowPin' was not declared in this scope
sketch_aug25f:31: error: 'digitalwrite' was not declared in this scope
sketch_aug25f:33: error: expected `)' before ';' token
sketch_aug25f:37: error: 'digitalWrrite' was not declared in this scope
sketch_aug25f:39: error: 'ledDELAY' was not declared in this scope
sketch_aug25f:43: error: expected `;' before 'digitalWrite'
sketch_aug25f:47: error: 'low' was not declared in this scope
sketch_aug25f:51: error: expected `;' before '}' token