Results 1 to 6 of 6
  1. #1
    25+ Posting Member
    Join Date
    Jul 2012
    Location
    pt
    Posts
    66
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    my xmas contribuition code for uno with 3 lcds

    hi there guys
    got to tell you guys that the more i learn about arduino the more i fall in love with it and i would like once again to give many thanks to jim cause without is piece of fantastic software i would probably never had the interest or the will to dive myself into the world of arduino. after saying that, this past couple of days i put myself into a test and start from scratch a new code for 3 lcds to be put on my home cockpit (i was going to use 4 lcds but i've damaged one of them in the process of soldering) and so i've gathered myself and the knowledge i've acquired so far and started to work on it. despite being generally satisfied with the code i've decided to give you guys a chance to criticize it and help me learn from my mistakes or even sugestions of what i've could done better. so here it is:

    Code:
    #include <LiquidCrystal.h> LiquidCrystal lcd1(9, 6, 5, 4, 3, 2); LiquidCrystal lcd2(9, 7, 5, 4, 3, 2); LiquidCrystal lcd3(9, 8, 5, 4, 3, 2); int CodeIn;// used on all serial reads String flaps, flapsOld, spoil, spoilOld, airSpeedOld, airSpeed, planeGrd, stall, fleft, fleftOld, fctr, fctrOld, fright, frightOld, totfuel, totfuelOld, overs, oversOld, fsxsim, alt, mach, machOld, ap, park, Hg, wind; String text0 = " are UP"; String text1 = " 1"; String text2 = " 2"; String text3 = " 5"; String text4 = " 10"; String text5 = " 15"; String text6 = "down 25"; String text7 = "down 30"; String text8 = "down 40"; String text9 = " MOVING"; void setup() { lcd1.begin(16, 2); lcd2.begin(16, 2); lcd3.begin(16, 2); delay (11); lcd1.print("Boeing 737-800NG"); lcd2.print("Boeing 737-800NG"); lcd3.print(" WELCOME ABOARD"); delay (1000); lcd1.setCursor(0, 1); lcd2.setCursor(0, 1); lcd3.setCursor(0, 1); delay (11); lcd1.print("Waiting SysCheck"); lcd2.print("Waiting SysCheck"); lcd3.print("CPT. FABIO PIRES"); delay (3000); lcd1.clear(); lcd2.clear(); lcd3.clear(); lcd1.begin(16, 2); delay (11); lcd1.setCursor(0, 0); lcd1.print("SPOILER | FLAPS"); lcd1.setCursor(8, 1); lcd1.print("|"); lcd2.begin(16, 2); delay (11); lcd2.setCursor(0, 0); lcd2.print("FLIGHT SYSTEM ON"); delay (2000); lcd2.setCursor(0, 1); lcd2.print("AVIONICS ARE ON"); delay (2000); lcd2.clear(); lcd2.setCursor(0, 0); lcd2.print(" Loading Fuel"); delay (11); lcd2.setCursor(0, 1); lcd2.print(" Tanks Values"); delay (4000); lcd2.clear(); { Serial.begin(115200); } Serial.flush(); } void loop() { if (Serial.available()) { CodeIn = getChar(); if (CodeIn == '?') { QUESTION(); } if (CodeIn == '<') { LESSTHAN(); } if (CodeIn == '=') { EQUALS(); } } } char getChar(){ while(Serial.available() == 0); return((char)Serial.read()); } void LESSTHAN(){ CodeIn = getChar(); switch(CodeIn) { case 'G': flaps = ""; flaps += getChar(); flaps += getChar(); flaps += getChar(); if(flaps == "000") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text0); } if(flaps == "001") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text1); } if(flaps == "002") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "004") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "006") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "008") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "0013") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "015") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "020") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "022") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "035") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "037") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "042") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "044") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "056") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text9); } if(flaps == "003") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text2); } if(flaps == "007") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text3); } if(flaps == "014") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text4); } if(flaps == "021") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text5); } if(flaps == "035") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text6); } if(flaps == "043") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text7); } if(flaps == "057") { lcd1.setCursor(9, 1); delay (11); lcd1.print(text8); } break; case 'j': delay (11); spoil = ""; spoil += getChar(); spoil += getChar(); spoil += getChar(); if (spoil != spoilOld){ delay (11); lcd1.setCursor(4, 1); delay (11); lcd1.print(spoil); lcd1.setCursor(7, 1); delay (11); lcd1.print("%"); spoilOld = spoil; } if(spoil == "001") { lcd1.setCursor(0, 1); delay (11); lcd1.print("SPBRKoff"); } if(spoil >= "002") { lcd1.setCursor(0, 1); delay (11); lcd1.print("ARMD "); break; case 'X': delay (11); fleft = ""; fleft += getChar(); fleft += getChar(); fleft += getChar(); if (fleft != fleftOld){ delay (11); lcd2.setCursor(3, 0); delay (11); lcd2.print(fleft + "%"); lcd2.setCursor(0, 0); delay (11); lcd2.print("Lft:"); fleftOld = fleft; } break; case 'Y': delay (11); fctr = ""; fctr += getChar(); fctr += getChar(); fctr += getChar(); if (fctr != fctrOld){ delay (11); lcd2.setCursor(12, 0); delay (11); lcd2.print(fctr + "%"); lcd2.setCursor(9, 0); delay (11); lcd2.print("Ctr:"); fctrOld = fctr; } break; case 'Z': delay (11); fright = ""; fright += getChar(); fright += getChar(); fright += getChar(); if (fright != frightOld){ delay (11); lcd2.setCursor(3, 1); delay (11); lcd2.print(fright + "%"); lcd2.setCursor(0, 1); delay (11); lcd2.print("Rgt:"); frightOld = fright; } break; case 'M': delay (11); totfuel = ""; totfuel += getChar(); totfuel += getChar(); totfuel += getChar(); if (totfuel != totfuelOld){ delay (11); lcd2.setCursor(12, 1); delay (11); lcd2.print(totfuel + "%"); lcd2.setCursor(9, 1); delay (11); lcd2.print("TOT:"); totfuelOld = totfuel; } break; case 'I': delay (11); planeGrd = ""; planeGrd += getChar(); if(planeGrd == "1") { lcd3.setCursor(0, 0); delay (11); lcd3.print("STATE: at GROUND"); } if(planeGrd == "0") { lcd3.setCursor(0, 0); delay (11); lcd3.print("STATE: in FLIGHT"); } if(planeGrd == "0") { lcd3.setCursor(0, 1); delay (11); lcd3.print(Hg + "Hg "); } if(planeGrd == "0") { lcd3.setCursor(8, 1); delay (11); lcd3.print(wind + "Wind"); } break; case 'q': delay (11); park = ""; park += getChar(); if(park == "1") { delay(11); lcd3.setCursor(0, 1); lcd3.print( "ParkingBrake ON "); } break; case 'S': delay (11); stall = ""; stall += getChar(); if(stall == "1") { delay(11); lcd3.setCursor(0, 0); lcd3.print( "STALL******STALL"); lcd3.setCursor(0, 1); lcd3.print( " WARNING "); lcd3.noDisplay(); delay(500); lcd3.display(); delay(500); } break; case 'D': delay (11); alt = ""; alt += getChar(); alt += getChar(); alt += getChar(); alt += getChar(); alt += getChar(); if(alt >= "35000") { delay(11); lcd3.setCursor(0, 0); lcd3.print( "Cruise Altitude "); lcd3.setCursor(7, 1); lcd3.print("Mach:" + mach); } } } } void QUESTION(){ CodeIn = getChar(); switch(CodeIn) { case 'A': delay (11); overs = ""; overs += getChar(); if (overs == "1"){ delay(11); lcd3.setCursor(0, 0); lcd3.print( " OVERSPEED "); lcd3.setCursor(0, 1); lcd3.print( " WARNING "); lcd3.noDisplay(); delay(500); lcd3.display(); delay(500); } break; case 'f': delay (11); fsxsim = ""; fsxsim += getChar(); if (fsxsim == "1"){ delay(11); lcd3.setCursor(0, 0); lcd3.print( "FLIGHT SIMULATOR"); lcd3.setCursor(0, 1); lcd3.print( "*****PAUSED*****"); lcd3.noDisplay(); delay(500); lcd3.display(); delay(500); } break; case 'k': delay (11); Hg = ""; Hg += getChar(); Hg += getChar(); Hg += getChar(); Hg += getChar(); Hg += getChar(); break; case 'D': delay (11); wind = ""; wind += getChar(); wind += getChar(); wind += getChar(); wind += getChar(); } } void EQUALS(){ CodeIn = getChar(); switch(CodeIn) { case 'i': mach = ""; mach += getChar(); mach += getChar(); mach += getChar(); mach += getChar(); } }

  2. #2
    150+ Forum Groupie
    Join Date
    Apr 2011
    Location
    United States of America
    Posts
    232
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: my xmas contribuition code for uno with 3 lcds

    Hello pirata.
    Like you, I love the arduino's capabilities ever more each passing day. Again, like you, JimNZ has been a major contributing factor to this love affair with this amazing board. As I learn more, I want to share it - especially with those in our community. I reviewed your code. Functionally, I can see nothing wrong with - it worked seamlessly with my 'simulated' SerialPort1.Write flaps test.

    That said, using my very few years of experience and attempting to share the art of creating smaller code, I took it upon myself to modify your setup void and the reading of the flaps and their transition to the new setting. Please note the changes in RED. The new code was tested successfully in my 'simulated' serial comm environment and the only focus was with start-up and flaps.

    Code:
                
                    #include 
    
    
    
    
    LiquidCrystal lcd1(9, 6, 5, 4, 3, 2);
    LiquidCrystal lcd2(9, 7, 5, 4, 3, 2);
    LiquidCrystal lcd3(9, 8, 5, 4, 3, 2);
    
    
    
    
    int CodeIn;// used on all serial reads
    
    
    String flaps, flapsOld, spoil, spoilOld, airSpeedOld, airSpeed, planeGrd, stall, fleft, fleftOld, fctr, fctrOld, fright, frightOld, totfuel, totfuelOld, overs, oversOld, fsxsim, alt, mach, machOld, ap, park, Hg, wind;
    
    
    boolean moving;
    
    
    String text[10];   // define 10 slots
    String L2flaps[9]; // define 9 slots
    
    
    
    
    void setup() 
    {
    // define flap gauge lcd indicator
     text[0] = " are UP";
     text[1] = "      1"; 
     text[2] = "      2";   
     text[3] = "      5";  
     text[4] = "     10";  
     text[5] = "     15";  
     text[6] = "down 25"; 
     text[7] = "down 30";
     text[8] = "down 40";
     text[9] = " MOVING";
    
    
    // define flap stop points
     L2flaps[0] = "000"; 
     L2flaps[1] = "flap1?";
     L2flaps[2] = "003";  //flaps 2
     L2flaps[3] = "007";  //flaps 5
     L2flaps[4] = "014";  //flaps 10
     L2flaps[5] = "021";  //flaps 15
     L2flaps[6] = "035";  //flaps 25
     L2flaps[7] = "043";  //flaps 30
     L2flaps[8] = "057";  //flaps 40
      Serial.begin(115200);
      Serial.flush();
      
     
      lcd1.begin(16, 2);
      lcd2.begin(16, 2);
      lcd3.begin(16, 2);
    //delay (11); delay not necessary
      lcd1.print("Boeing 737-800NG");
      lcd2.print("Boeing 737-800NG");
      lcd3.print(" WELCOME ABOARD");
      delay (1000);
      
      establishContact();  // wait until here until connected to L2FS
      
      lcd1.clear();
      lcd2.clear();
      lcd3.clear();
      //lcd1.begin(16, 2);  - already declared above
      //delay (11); delay not necessary
      lcd1.setCursor(0, 0);
      lcd1.print("SPOILER |  FLAPS");
      lcd1.setCursor(8, 1);
      lcd1.print("|");
      //lcd2.begin(16, 2);  - already declared above
      //delay (11); delay not necessary
      lcd2.setCursor(0, 0);
      lcd2.print("FLIGHT SYSTEM ON");
      delay (2000);
      lcd2.setCursor(0, 1);
      lcd2.print("AVIONICS ARE ON");
      delay (2000);
      lcd2.clear();
      lcd2.setCursor(0, 0);
      lcd2.print("  Loading Fuel");
      //delay (11); delay not necessary
      lcd2.setCursor(0, 1);
      lcd2.print("  Tanks Values");
      delay (4000);
      lcd2.clear();
      //{ - commented out/ not needed anyway
      //Serial.begin(115200); moved to top to allow establishContact() to be used
      //Serial.flush();       moved to top to allow establishContact() to be used
      //} - commented out /not needed anyway
     
    }
    
    
    void loop() {
    
    
      if (Serial.available()) {
        CodeIn = getChar();
        if (CodeIn == '?') {
          QUESTION();
        }
        if (CodeIn == '<') {
          LESSTHAN();
        }
        if (CodeIn == '=') {
          EQUALS();
        }  
      }
    } 
    
    
    char getChar(){
      while(Serial.available() == 0);
      return((char)Serial.read());
    }
    
    
    void LESSTHAN(){
    
    
      CodeIn = getChar(); 
      switch(CodeIn) {
      case 'G':
        flaps = "";
        flaps += getChar();
        flaps += getChar();
        flaps += getChar();
       
    
    // removed about 158 lines of code and replaced with this:
    
    
     if(flaps != flapsOld && moving == false){ //prevents continuous lcd printing
            lcd1.setCursor(9, 1);  
            //delay (11); - delay not necessary
            lcd1.print(text[9]);
            moving = true;
    }  // end  if(flaps != flapsold)
    
    
    if(flaps == flapsOld && moving == true){ moving = false;}  
        for (int i = 0; i < 9; i++) {
            if (flaps == L2flaps[i] && moving == false){lcd1.setCursor(9, 1); lcd1.print(text[i]);}  // 'i' coincides with each array slot
            if (moving == true){lcd1.setCursor(9, 1); lcd1.print(text[9]);} 
        } // end for - read L2flaps array
        flapsOld = flaps;
        
    break;  //end case 'G'
    
    
      case 'j':
        delay (11);
    
    
        spoil = "";
        spoil += getChar();
        spoil += getChar();
        spoil += getChar(); 
        if (spoil != spoilOld){
          //delay (11);
          lcd1.setCursor(4, 1);
          //delay (11);
          lcd1.print(spoil);
          lcd1.setCursor(7, 1);
          //delay (11);
          lcd1.print("%");
          spoilOld = spoil;
        }    
    
    
        if(spoil == "001")
        {
          lcd1.setCursor(0, 1); 
          //delay (11); - delay not needed
          lcd1.print("SPBRKoff"); 
        }else{
          lcd1.setCursor(0, 1); 
          lcd1.print("ARMD "); 
        }
        //if(spoil >= "002")
        //{
          //lcd1.setCursor(0, 1); 
          //delay (11);
          //lcd1.print("ARMD "); 
        //}
    
    
          break;
        case 'X':
          delay (11);
          fleft = "";
          fleft += getChar();
          fleft += getChar();
          fleft += getChar(); 
          if (fleft != fleftOld){
            delay (11);
            lcd2.setCursor(3, 0);
            delay (11);
            lcd2.print(fleft + "%");
            lcd2.setCursor(0, 0);
            delay (11);
            lcd2.print("Lft:");
            fleftOld = fleft;
          }    
    
    
    
    
          break;
        case 'Y':
          delay (11);
          fctr = "";
          fctr += getChar();
          fctr += getChar();
          fctr += getChar(); 
          if (fctr != fctrOld){
            delay (11);
            lcd2.setCursor(12, 0);
            delay (11);
            lcd2.print(fctr + "%");
            lcd2.setCursor(9, 0);
            delay (11);
            lcd2.print("Ctr:");
            fctrOld = fctr;
          }    
    
    
          break;
        case 'Z':
          delay (11);
    
    
          fright = "";
          fright += getChar();
          fright += getChar();
          fright += getChar(); 
          if (fright != frightOld){
            delay (11);
            lcd2.setCursor(3, 1);
            delay (11);
            lcd2.print(fright + "%");
            lcd2.setCursor(0, 1);
            delay (11);
            lcd2.print("Rgt:");
            frightOld = fright;
          }    
    
    
    
    
    
    
          break;
        case 'M':
          delay (11);
          totfuel = "";
          totfuel += getChar();
          totfuel += getChar();
          totfuel += getChar(); 
          if (totfuel != totfuelOld){
            delay (11);
            lcd2.setCursor(12, 1);
            delay (11);
            lcd2.print(totfuel + "%");
            lcd2.setCursor(9, 1);
            delay (11);
            lcd2.print("TOT:");
            totfuelOld = totfuel;
          }    
    
    
          break;
        case 'I':
          delay (11);
          planeGrd = "";
          planeGrd += getChar();
          if(planeGrd == "1")
          {
            lcd3.setCursor(0, 0); 
            delay (11);
            lcd3.print("STATE: at GROUND"); 
    
    
          }
    
    
          if(planeGrd == "0")
          {
            lcd3.setCursor(0, 0); 
            delay (11);
            lcd3.print("STATE: in FLIGHT"); 
          } 
          if(planeGrd == "0")
          {
            lcd3.setCursor(0, 1);
            delay (11);
            lcd3.print(Hg + "Hg "); 
          }    
    
    
          if(planeGrd == "0")
          {
            lcd3.setCursor(8, 1); 
            delay (11);
            lcd3.print(wind + "Wind"); 
          }    
    
    
          break;
        case 'q':
          delay (11);
          park = "";
          park += getChar();
          if(park == "1") {
            delay(11);
            lcd3.setCursor(0, 1);
            lcd3.print( "ParkingBrake ON ");
          } 
    
    
    
    
    
    
          break;
        case 'S':
          delay (11);
          stall = "";
          stall += getChar();
          if(stall == "1") {
            delay(11);
            lcd3.setCursor(0, 0);
            lcd3.print( "STALL******STALL");
            lcd3.setCursor(0, 1);
            lcd3.print( "     WARNING   ");
            lcd3.noDisplay();
            delay(500);
            lcd3.display();
            delay(500);
    
    
          }    
    
    
          break;
        case 'D':
          delay (11);
          alt = "";
          alt += getChar();
          alt += getChar();
          alt += getChar();
          alt += getChar();
          alt += getChar();
          if(alt >= "35000") {
            delay(11);
            lcd3.setCursor(0, 0);
            lcd3.print( "Cruise Altitude ");
            lcd3.setCursor(7, 1);
            lcd3.print("Mach:" + mach);
    
    
          }    
        }
      }
    
    
    
    
    
    
    
    
    
    
    
    
    void QUESTION(){      
      CodeIn = getChar();
      switch(CodeIn) {
      case 'A':
        delay (11);
        overs = "";
        overs += getChar();
        if (overs == "1"){
          delay(11);
          lcd3.setCursor(0, 0);
          lcd3.print( "    OVERSPEED  ");
          lcd3.setCursor(0, 1);
          lcd3.print( "     WARNING   ");
          lcd3.noDisplay();
          delay(500);
          lcd3.display();
          delay(500);
        }    
        break;
      case 'f':
        delay (11);
        fsxsim = "";
        fsxsim += getChar();
        if (fsxsim == "1"){
          delay(11);
          lcd3.setCursor(0, 0);
          lcd3.print( "FLIGHT SIMULATOR");
          lcd3.setCursor(0, 1);
          lcd3.print( "*****PAUSED*****");
          lcd3.noDisplay();
          delay(500);
          lcd3.display();
          delay(500);
        }    
        break;
      case 'k':
        delay (11);
        Hg = "";
        Hg += getChar();
        Hg += getChar();
        Hg += getChar();
        Hg += getChar();
        Hg += getChar();
    
    
    
    
    
    
        break;
      case 'D':
        delay (11);
        wind = "";
        wind += getChar();
        wind += getChar();
        wind += getChar();
        wind += getChar();
    
    
    
    
    
    
    
    
      }    
    
    
    }    
    
    
    
    
    
    
    void EQUALS(){     
      CodeIn = getChar(); 
      switch(CodeIn) {
      case 'i':
    
    
        mach = "";
        mach += getChar();
        mach += getChar();
        mach += getChar();
        mach += getChar();
      }    
    } 
    
    
    ///////////////////////////////////////
    void establishContact() {
      while (Serial.available() <= 0) {
    
    
      lcd1.setCursor(0, 1);
      lcd2.setCursor(0, 1);
      lcd3.setCursor(0, 1);
      //delay (11); delay not necessary
    
      lcd1.print("Waiting SysCheck");
      lcd2.print("Waiting SysCheck");
      lcd3.print("CPT. FABIO PIRES");
      // lcd blinks message until connection
      delay (2000);
      lcd1.setCursor(0, 1);
      lcd2.setCursor(0, 1);
      lcd1.print("                ");
      lcd2.print("                ");
      delay (500);
       }
    
    
    }
    If you cannot tell, I am a huge proponent for arrays. They shorten the code considerably, which as a by-product, makes it easier to read. Oh, I hope you enjoyed the start-up 'bling' on your lcds!

    Cheers!

  3. Likes BuzziBi liked this post
  4. #3
    25+ Posting Member
    Join Date
    Jul 2012
    Location
    pt
    Posts
    66
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: my xmas contribuition code for uno with 3 lcds

    thanks jmeller
    that is just marvelous stuff you are 100 light years ahead of me. i loved your contribuition and that was what i was hoping for. i'll test it later on to see how it works
    thanks again
    best regards

  5. #4
    25+ Posting Member
    Join Date
    Jul 2012
    Location
    pt
    Posts
    66
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: my xmas contribuition code for uno with 3 lcds

    hi there jmeller
    unfortunately it seems to have a problem when moving flaps. sometimes it gets stuck on "moving" i'll try to see whats wrong later on
    best regards

  6. #5
    150+ Forum Groupie
    Join Date
    Apr 2011
    Location
    United States of America
    Posts
    232
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: my xmas contribuition code for uno with 3 lcds

    Yup, pirata - after conducting a true test with fsx running and L2FS running, I noticed the same thing. There was a huge lag or didn't work at all. So, I reworked case 'G' and it now looks like this:

    Code:
      case 'G':
        flaps = "";
        flaps += getChar();
        flaps += getChar();
        flaps += getChar();
       
        
        for (int i = 0; i < 9; i++) {
               if (flaps == L2flaps[i] ){lcd1.setCursor(9, 1); lcd1.print(text[i]); break;
                 }else{
                lcd1.setCursor(9, 1); lcd1.print(text[9]);}
        } // end for - read L2flaps array
    
    
       
    break;  //end case 'G'
    
    
    
    
      case 'j':
    This was fully tested w/ fsx and L2FS and it works fine - no delays. I apologize for the defective code.
    Also, I assume your are using the default values of the 737-800. If so, you may want to change L2flaps[6] = "035"; to L2flaps[6] = "036";
    and L2flaps[1] = "flap1?"; to L2flaps[1] = "1";
    If the values do not exactly match, the lcd will be stuck on "Moving".
    JM

  7. #6
    25+ Posting Member
    Join Date
    Jul 2012
    Location
    pt
    Posts
    66
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: my xmas contribuition code for uno with 3 lcds

    thanks jm
    i'll test it later on
    best regards and happy new year