Page 100 - PROYECTO INTEGRADOR_Neat
P. 100

pinMode(5, OUTPUT);

                    pinMode(6, OUTPUT);

                    pinMode(7, OUTPUT);


                    pinMode(8, OUTPUT);

                    pinMode(9, OUTPUT);



                      pinMode(12,INPUT);




                  }



                  void loop()

                  {


                   d=digitalRead(12);

                    if (d==HIGH)

                    {

                      analogWrite(7,254);


                      analogWrite(8,0);

                      analogWrite(9,150);



                          analogWrite(6,64);


                      analogWrite(5,90);

                      analogWrite(4,30);



                          analogWrite(3,34);

                      analogWrite(2,20);


                      analogWrite(1,130);

                      delay(t);
   95   96   97   98   99   100   101   102   103   104   105