Page 113 - Proyecto
P. 113

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

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

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


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