# data[].attributes.body
#define botao 4
#define led 7
void setup() {
// put your setup code here, to run once:
pinMode(botao, INPUT);
pinMode(led, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:

if (digitalRead(botao) == 1){
digitalWrite(led, HIGH);
} else {
digitalWrite(led, LOW);
}
}

# data[].attributes.headline
Atividade N° 2: Knight Rider (A Super Máquina)

# data[].attributes.subject
Atividade N° 2: Knight Rider (A Super Máquina)

# data[].attributes.body
void setup() {
// put your setup code here, to run once:
pinMode(13,OUTPUT);
pinMode(12,OUTPUT);
pinMode(11,OUTPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
pinMode(8,OUTPUT);
pinMode(7,OUTPUT);
pinMode(6,OUTPUT);
pinMode(5,OUTPUT);
pinMode(4,OUTPUT);

}

void loop() {
// put your main code here, to run repeatedly:

//ida

digitalWrite(12, HIGH);
delay(50);
digitalWrite(12, LOW);
// delay(50);
digitalWrite(11, HIGH);
//delay(50);
digitalWrite(11, LOW);
//delay(50);
digitalWrite(10, HIGH);
delay(50);
digitalWrite(10, LOW);
//delay(50);
digitalWrite(9, HIGH);
delay(50);
digitalWrite(9, LOW);
// delay(50);
digitalWrite(8, HIGH);
delay(50);
digitalWrite(8, LOW);
// delay(50);
digitalWrite(7, HIGH);
delay(50);
digitalWrite(7, LOW);
// delay(50);
digitalWrite(6, HIGH);
delay(50);
digitalWrite(6, LOW);
//delay(50);
digitalWrite(5, HIGH);
delay(50);
digitalWrite(5, LOW);
//delay(50);
digitalWrite(4, HIGH);
delay(50);
digitalWrite(4, LOW);
delay(50);
//volta

digitalWrite(5, HIGH);
delay(50);
digitalWrite(5, LOW);
//  delay(50);
digitalWrite(6, HIGH);
delay(50);
digitalWrite(6, LOW);
//  delay(50);
digitalWrite(7, HIGH);
delay(50);
digitalWrite(7, LOW);
//delay(50);
digitalWrite(8, HIGH);
delay(50);
digitalWrite(8, LOW);
// delay(50);
digitalWrite(9, HIGH);
delay(50);
digitalWrite(9, LOW);
//delay(50);
digitalWrite(10, HIGH);
delay(50);
digitalWrite(10, LOW);
//delay(50);
digitalWrite(11, HIGH);
delay(50);
digitalWrite(11, LOW);
//delay(50);
digitalWrite(12, HIGH);
delay(50);
digitalWrite(12, LOW);
//delay(50);
digitalWrite(13, HIGH);
delay(50);
digitalWrite(13, LOW);
delay(50);

}