Page 81 - Proyecto
P. 81

if (distancia <=50)


                                        {
                                        digitalWrite (led1, HIGH);

                                       digitalWrite (led2, HIGH);
                                       digitalWrite (busser, HIGH);
                                        tone(5, 1000);
                                        delay(1);

                                      }

                                          else

                                         {
                                           digitalWrite(led1, LOW);
                                           digitalWrite(led2, LOW);
                                           digitalWrite(busser, LOW);
                                           noTone(5);

                                      }
                                      }















































                                                           76
   76   77   78   79   80   81   82   83   84   85   86