Page 45 - PROYECTO INTEGRADOR
P. 45

}




                  void loop()

                  {

                    //0

                    digitalWrite(a, HIGH);


                    digitalWrite(b, HIGH);

                    digitalWrite(c, HIGH);

                    digitalWrite(d, HIGH);

                    digitalWrite(e, HIGH);

                    digitalWrite(f, HIGH);


                    digitalWrite(g, LOW);



                    delay(tiempo);

                      //1


                    digitalWrite(a, LOW);

                    digitalWrite(b, HIGH);

                    digitalWrite(c, HIGH);

                    digitalWrite(d, LOW);


                    digitalWrite(e, LOW);

                    digitalWrite(f, LOW);

                    digitalWrite(g, LOW);



                    delay( tiempo);


                      //2

                      digitalWrite(a, HIGH);
   40   41   42   43   44   45   46   47   48   49   50