PRACTICA 3: COCHE FANTASTICO
void setup() { // initialize digital pin 13 as an output. pinMode(13, OUTPUT); pinMode(12, OUTPUT); pinMode(11, OUTPUT); pinMode(10, OUTPUT); } void loop() { digitalWrite(13, HIGH); delay(100); digitalWrite(12, HIGH); digitalWrite(13, LOW); delay(100); digitalWrite(11, HIGH); digitalWrite(12, LOW); delay(100); digitalWrite(10, HIGH); digitalWrite(11, LOW); delay(100); digitalWrite(11, HIGH); digitalWrite(10, LOW); delay(100); digitalWrite(12, HIGH); digitalWrite(11, LOW); delay(100); digitalWrite(13, HIGH); digitalWrite(12, LOW); }