Page 54 - Proyecto - Ana Guerrero
P. 54

int ld1= 2;                     digitalWrite(ld4, HIGH);
                                int ld2= 3;                     digitalWrite(ld8, HIGH);
                                int ld3= 4;                               delay(t);
                                int ld4= 5;
                                                                digitalWrite(ld4, LOW);
                                int ld5= 6;
                                                                digitalWrite(ld8, LOW);
                                int ld6= 7;
                                                                          delay(t);
                                int ld7= 8;
                                                                digitalWrite(ld5, HIGH);
                                int ld8= 9;
                               int ld9= 10;                     digitalWrite(ld7, HIGH);
                               int ld10= 11;                              delay(t);
                               int ld11= 12;                    digitalWrite(ld5, LOW);
                               int ld12= 13;                    digitalWrite(ld7, LOW);
                                int t= 300;                               delay(t);
                                int t2= 50;                     digitalWrite(ld6, HIGH);
                               void setup()
                                                                          delay(t);
                                      {
                                                                digitalWrite(ld6, LOW);
                          pinMode(ld1, OUTPUT);
                                                                          delay(t);
                          pinMode(ld2, OUTPUT);
                                                                       //REGRESADA//
                          pinMode(ld3, OUTPUT);
                          pinMode(ld4, OUTPUT);                 digitalWrite(ld5, HIGH);
                          pinMode(ld5, OUTPUT);                 digitalWrite(ld7, HIGH);
                          pinMode(ld6, OUTPUT);                           delay(t2);
                          pinMode(ld7, OUTPUT);                 digitalWrite(ld5, LOW);
                          pinMode(ld8, OUTPUT);                 digitalWrite(ld7, LOW);
                          pinMode(ld9, OUTPUT);                           delay(t2);
                         pinMode(ld10, OUTPUT);
                                                                digitalWrite(ld4, HIGH);
                         pinMode(ld11, OUTPUT);
                                                                digitalWrite(ld8, HIGH);
                         pinMode(ld12, OUTPUT);
                                                                          delay(t2);
                                      }
                                                                digitalWrite(ld4, LOW);
                                void loop()
                                      {                         digitalWrite(ld8, LOW);
                       digitalWrite(ld12, HIGH);                          delay(t2);
                                  delay(t);                     digitalWrite(ld3, HIGH);
                        digitalWrite(ld12, LOW);                digitalWrite(ld9, HIGH);
                                  delay(t);                               delay(t2);
                        digitalWrite(ld1, HIGH);                digitalWrite(ld3, LOW);
                       digitalWrite(ld11, HIGH);                digitalWrite(ld9, LOW);
                                  delay(t);
                                                                          delay(t2);
                         digitalWrite(ld1, LOW);
                        digitalWrite(ld11, LOW);                digitalWrite(ld2, HIGH);
                                                               digitalWrite(ld10, HIGH);
                                  delay(t);
                         digitalWrite(ld2, HIGH);                         delay(t2);
                       digitalWrite(ld10, HIGH);                digitalWrite(ld2, LOW);
                                  delay(t);                     digitalWrite(ld10, LOW);
                         digitalWrite(ld2, LOW);                          delay(t2);
                        digitalWrite(ld10, LOW);                digitalWrite(ld1, HIGH);
                                  delay(t);                    digitalWrite(ld11, HIGH);
                         digitalWrite(ld3, HIGH);                         delay(t2);
                        digitalWrite(ld9, HIGH);
                                                                digitalWrite(ld1, LOW);
                                  delay(t);
                         digitalWrite(ld3, LOW);                digitalWrite(ld11, LOW);
                                                                          delay(t2);
                         digitalWrite(ld9, LOW);
                                  delay(t);                                     }
   49   50   51   52   53   54   55   56   57   58   59