Page 114 - Proyecto
P. 114

digitalWrite(ld7, HIGH);
                                      digitalWrite(ld8, LOW);
                                      digitalWrite(ld9, LOW);
                                       }
                                      else if(pt>=900 && pt<=950)
                                      {
                                      digitalWrite(ld1, HIGH);

                                      digitalWrite(ld2, HIGH);
                                      digitalWrite(ld3, HIGH);
                                      digitalWrite(ld4, HIGH);
                                      digitalWrite(ld5, HIGH);
                                      digitalWrite(ld6, HIGH);
                                      digitalWrite(ld7, HIGH);
                                      digitalWrite(ld8, HIGH);
                                      digitalWrite(ld9, LOW);
                                       }
                                      else if(pt>=950 && pt<=1023)
                                      {
                                      digitalWrite(ld1, HIGH);
                                      digitalWrite(ld2, HIGH);
                                      digitalWrite(ld3, HIGH);

                                      digitalWrite(ld4, HIGH);
                                      digitalWrite(ld5, HIGH);
                                      digitalWrite(ld6, HIGH);
                                      digitalWrite(ld7, HIGH);
                                      digitalWrite(ld8, HIGH);
                                      digitalWrite(ld9, HIGH);
                                       }
                                     else
                                        {
                                      digitalWrite(ld1, LOW);
                                      digitalWrite(ld2, LOW);
                                      digitalWrite(ld3, LOW);
                                      digitalWrite(ld4, LOW);
                                      digitalWrite(ld5, LOW);
                                      digitalWrite(ld6, LOW);
                                      digitalWrite(ld7, LOW);
                                      digitalWrite(ld8, LOW);
                                      digitalWrite(ld9, LOW);
                                      lcd.setCursor(4,1);

                                       lcd.print("LEDS APAGADO");
                                      }
                                    }


                                                          109
   109   110   111   112   113   114   115   116   117   118   119