Nano Programs used worked, replaced dead Nano with new, now nothing works.h new now , now

Help.
Existing Nano and Shield worked fine... before Nano shorted to cabinet ground, replaced Nano and Shield with same Nano and Shield, now can not get the two Sketches attached here to compile. Multiple errors focused around the display driver. Tried to change to the HD44780 library but no joy.
A non programmer here so have no idea what is going wrong or how to get the programs that used to work fine to compile. Help and Thank you

With out an annotated schematic showing all connections, power supplies, I can only take a SWAG and say more then the Nano was destroyed during the fault. It is also possible what has failed can or has destroyed the replacement Nano.

`

Use code tags to format code for the forum````

COC_8_encoder.ino (6.7 KB)

// hd44780 - Version: 1.3.2
#include <hd44780.h>

// LiquidCrystal I2C - Version: 1.1.2
#include <LiquidCrystal_I2C.h>

// LiquidCrystal - Version: Latest 
#include <LiquidCrystal.h>

//hd44780h_h - Version: Latest 
#include <hd44780.h>

// Arduino_BuiltIn - Version: Latest 
#include <Arduino_BuiltIn.h>

#include <Mouse.h>

#include <Mouse.h>

#include <LiquidCrystal.h>

#include <LiquidCrystal.h>


#include <EEPROM.h>
#include <Wire.h>
//#include <LCD.>
#include <LiquidCrystal_I2C.h>  // F Malpartida's NewLiquidCrystal library
#define I2C_ADDR 0x27           // Define I2C Address for controller
//#define En_pin 2
//#define Rw_pin 1
//#define Rs_pin 0
//#define D4_pin 4
//#define D5_pin 5
//#define D6_pin 6
//#define D7_pin 7
#define BACKLIGHT 3
LiquidCrystal_I2C  (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);
//float xxx;
//float yyy;
//unsigned long pwm1;
//unsigned long pwm2;

int lcdTime = 350;
unsigned long previousMillislcd = 0;

float cycleTime = 0;
int cycleTimePin = A0;
unsigned long previousMilliscycle = 0;

int cyclePin = 5;  // cycle run
int cyclePinState;

int cycleState;

int cycleOutPin = 4;  //cycle out

//int passState = LOW;
//int failState = LOW;
int x = 0;
int aPin = 8;
int bPin = 9;
int cPin = 10;
int dPin = 11;
int aState;
int bState;
int cState;
int dState;
int manualPin = 6;
int manualState;


/////////////////////////////////////////////////////
void setup() {
  //delay (1000);
  lcd.begin(20, 4);
  lcd.setBacklightPin(BACKLIGHT, POSITIVE);
  lcd.setBacklight(HIGH);
  //lcd.print(" COC Aerospace");
  Serial.begin(9600);

  pinMode(8, INPUT);
  pinMode(9, INPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  digitalWrite(8, HIGH);
  digitalWrite(9, HIGH);
  //digitalWrite(10, HIGH);
  //digitalWrite(11, HIGH);
  pinMode(4, OUTPUT);
  pinMode(5, INPUT);  // cycle run
  digitalWrite(5, HIGH);
  pinMode(6, INPUT);
  digitalWrite(6, HIGH);  //pull up
}
////////////////////////////////////////////////////
void loop() {
  unsigned long currentMillis = millis();
  cycleTime = analogRead(cycleTimePin);
  cycleTime = cycleTime * 5;
  cyclePinState = digitalRead(cyclePin);
  aState = digitalRead(aPin);  //8
  bState = digitalRead(bPin);  //9
  cState = digitalRead(cPin);  //10
  dState = digitalRead(dPin);  //11
  manualState = digitalRead(manualPin);


  ///////////////////////////////////// cycle ///////////////////////////////////////
  if (cyclePinState == HIGH) {  // Cycle OFF
    x = 0;
    if (manualState == LOW) {
      cycleState = LOW;  // Motor ON
    } else {
      cycleState = HIGH;  // Motor OFF
    }
  }
  if (cyclePinState == LOW) {
    if (currentMillis - previousMilliscycle >= cycleTime) {
      previousMilliscycle = currentMillis;
      // if the LED is off turn it on and vice-versa:
      if (cycleState == LOW) {
        cycleState = HIGH;
      } else {
        cycleState = LOW;
        x;
        x > 0;
        x++;
      }
    }
  }
  if (cycleState == LOW) {  //OPEN VALVE pwmOut1, xxx
    digitalWrite(4, HIGH);
  }
  if (cycleState == HIGH) {  //CLOSE VALVE pwmOut1, yyy
    digitalWrite(4, LOW);
  }
  //}
  //////////////////////////////////////////////////////////////////////////////////
  if (aState == LOW) {
    lcd.setCursor(1, 2);
    lcd.print("open:ON ");  //  closed
    digitalWrite(10, HIGH);
  } else {
    lcd.setCursor(1, 2);
    lcd.print("open:OFF");
    digitalWrite(10, LOW);
  }

  if (bState == LOW) {
    lcd.setCursor(10, 2);
    lcd.print("close:ON ");
    digitalWrite(11, HIGH);
  } else {
    lcd.setCursor(10, 2);
    lcd.print("close:OFF");
    digitalWrite(11, LOW);
  }

  ///////////////////////// LCD ////////////////////////////////

  if (currentMillis - previousMillislcd >= lcdTime) {
    lcd.setCursor(1, 0);
    lcd.print("COC Aerospace");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 1);
    lcd.print("Actuator test");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 3);
    lcd.print("Cycle Count ");
    lcd.print(x);
    lcd.print("  ");

    //    lcd.setCursor(1, 2);
    //    lcd.print("Cycle Time Hz ");
    //    lcd.print(cycleTime / 500 , 1);
    //    lcd.print("  ");

    //    lcd.setCursor(0, 1);
    //    lcd.print("PWM%");
    //    lcd.setCursor(11, 1);
    //    lcd.print("calC ");
    //    lcd.print(calLow, 1);
    //    lcd.setCursor(11, 2);
    //    lcd.print("calO ");
    //    lcd.print(calHigh, 1);
    previousMillislcd = currentMillis;
  }
}

// hd44780 - Version: 1.3.2
#include <hd44780.h>

// LiquidCrystal I2C - Version: 1.1.2
#include <LiquidCrystal_I2C.h>

// LiquidCrystal - Version: Latest
#include <LiquidCrystal.h>

//hd44780h_h - Version: Latest
#include <hd44780.h>

// Arduino_BuiltIn - Version: Latest
#include <Arduino_BuiltIn.h>

#include <Mouse.h>

#include <Mouse.h>

#include <LiquidCrystal.h>

#include <LiquidCrystal.h>

#include <EEPROM.h>
#include <Wire.h>
//#include <LCD.>
#include <LiquidCrystal_I2C.h> // F Malpartida's NewLiquidCrystal library
#define I2C_ADDR 0x27 // Define I2C Address for controller
//#define En_pin 2
//#define Rw_pin 1
//#define Rs_pin 0
//#define D4_pin 4
//#define D5_pin 5
//#define D6_pin 6
//#define D7_pin 7
#define BACKLIGHT 3
LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);
//float xxx;
//float yyy;
//unsigned long pwm1;
//unsigned long pwm2;

int lcdTime = 350;
unsigned long previousMillislcd = 0;

float cycleTime = 0;
int cycleTimePin = A0;
unsigned long previousMilliscycle = 0;

int cyclePin = 5; // cycle run
int cyclePinState;

int cycleState;

int cycleOutPin = 4; //cycle out

//int passState = LOW;
//int failState = LOW;
int x = 0;
int aPin = 8;
int bPin = 9;
int cPin = 10;
int dPin = 11;
int aState;
int bState;
int cState;
int dState;
int manualPin = 6;
int manualState;

/////////////////////////////////////////////////////
void setup() {
//delay (1000);
lcd.begin(20, 4);
lcd.setBacklightPin(BACKLIGHT, POSITIVE);
lcd.setBacklight(HIGH);
//lcd.print(" COC Aerospace");
Serial.begin(9600);

pinMode(8, INPUT);
pinMode(9, INPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
digitalWrite(8, HIGH);
digitalWrite(9, HIGH);
//digitalWrite(10, HIGH);
//digitalWrite(11, HIGH);
pinMode(4, OUTPUT);
pinMode(5, INPUT); // cycle run
digitalWrite(5, HIGH);
pinMode(6, INPUT);
digitalWrite(6, HIGH); //pull up
}
////////////////////////////////////////////////////
void loop() {
unsigned long currentMillis = millis();
cycleTime = analogRead(cycleTimePin);
cycleTime = cycleTime * 5;
cyclePinState = digitalRead(cyclePin);
aState = digitalRead(aPin); //8
bState = digitalRead(bPin); //9
cState = digitalRead(cPin); //10
dState = digitalRead(dPin); //11
manualState = digitalRead(manualPin);

///////////////////////////////////// cycle ///////////////////////////////////////
if (cyclePinState == HIGH) { // Cycle OFF
x = 0;
if (manualState == LOW) {
cycleState = LOW; // Motor ON
} else {
cycleState = HIGH; // Motor OFF
}
}
if (cyclePinState == LOW) {
if (currentMillis - previousMilliscycle >= cycleTime) {
previousMilliscycle = currentMillis;
// if the LED is off turn it on and vice-versa:
if (cycleState == LOW) {
cycleState = HIGH;
} else {
cycleState = LOW;
x;
x > 0;
x++;
}
}
}
if (cycleState == LOW) { //OPEN VALVE pwmOut1, xxx
digitalWrite(4, HIGH);
}
if (cycleState == HIGH) { //CLOSE VALVE pwmOut1, yyy
digitalWrite(4, LOW);
}
//}
//////////////////////////////////////////////////////////////////////////////////
if (aState == LOW) {
lcd.setCursor(1, 2);
lcd.print("open:ON "); // closed
digitalWrite(10, HIGH);
} else {
lcd.setCursor(1, 2);
lcd.print("open:OFF");
digitalWrite(10, LOW);
}

if (bState == LOW) {
lcd.setCursor(10, 2);
lcd.print("close:ON ");
digitalWrite(11, HIGH);
} else {
lcd.setCursor(10, 2);
lcd.print("close:OFF");
digitalWrite(11, LOW);
}

///////////////////////// LCD ////////////////////////////////

if (currentMillis - previousMillislcd >= lcdTime) {
lcd.setCursor(1, 0);
lcd.print("COC Aerospace");
//lcd.print(x);
//lcd.print(" ");

lcd.setCursor(1, 1);
lcd.print("Actuator test");
//lcd.print(x);
//lcd.print(" ");

lcd.setCursor(1, 3);
lcd.print("Cycle Count ");
lcd.print(x);
lcd.print("  ");

//    lcd.setCursor(1, 2);
//    lcd.print("Cycle Time Hz ");
//    lcd.print(cycleTime / 500 , 1);
//    lcd.print("  ");

//    lcd.setCursor(0, 1);
//    lcd.print("PWM%");
//    lcd.setCursor(11, 1);
//    lcd.print("calC ");
//    lcd.print(calLow, 1);
//    lcd.setCursor(11, 2);
//    lcd.print("calO ");
//    lcd.print(calHigh, 1);
previousMillislcd = currentMillis;

}
}

// hd44780 - Version: 1.3.2
#include <hd44780.h>

// LiquidCrystal I2C - Version: 1.1.2
#include <LiquidCrystal_I2C.h>

// LiquidCrystal - Version: Latest 
#include <LiquidCrystal.h>

//hd44780h_h - Version: Latest 
#include <hd44780.h>

// Arduino_BuiltIn - Version: Latest 
#include <Arduino_BuiltIn.h>

#include <Mouse.h>

#include <Mouse.h>

#include <LiquidCrystal.h>

#include <LiquidCrystal.h>


#include <EEPROM.h>
#include <Wire.h>
//#include <LCD.>
#include <LiquidCrystal_I2C.h>  // F Malpartida's NewLiquidCrystal library
#define I2C_ADDR 0x27           // Define I2C Address for controller
//#define En_pin 2
//#define Rw_pin 1
//#define Rs_pin 0
//#define D4_pin 4
//#define D5_pin 5
//#define D6_pin 6
//#define D7_pin 7
#define BACKLIGHT 3
LiquidCrystal_I2C  (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);
//float xxx;
//float yyy;
//unsigned long pwm1;
//unsigned long pwm2;

int lcdTime = 350;
unsigned long previousMillislcd = 0;

float cycleTime = 0;
int cycleTimePin = A0;
unsigned long previousMilliscycle = 0;

int cyclePin = 5;  // cycle run
int cyclePinState;

int cycleState;

int cycleOutPin = 4;  //cycle out

//int passState = LOW;
//int failState = LOW;
int x = 0;
int aPin = 8;
int bPin = 9;
int cPin = 10;
int dPin = 11;
int aState;
int bState;
int cState;
int dState;
int manualPin = 6;
int manualState;


/////////////////////////////////////////////////////
void setup() {
  //delay (1000);
  lcd.begin(20, 4);
  lcd.setBacklightPin(BACKLIGHT, POSITIVE);
  lcd.setBacklight(HIGH);
  //lcd.print(" COC Aerospace");
  Serial.begin(9600);

  pinMode(8, INPUT);
  pinMode(9, INPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  digitalWrite(8, HIGH);
  digitalWrite(9, HIGH);
  //digitalWrite(10, HIGH);
  //digitalWrite(11, HIGH);
  pinMode(4, OUTPUT);
  pinMode(5, INPUT);  // cycle run
  digitalWrite(5, HIGH);
  pinMode(6, INPUT);
  digitalWrite(6, HIGH);  //pull up
}
////////////////////////////////////////////////////
void loop() {
  unsigned long currentMillis = millis();
  cycleTime = analogRead(cycleTimePin);
  cycleTime = cycleTime * 5;
  cyclePinState = digitalRead(cyclePin);
  aState = digitalRead(aPin);  //8
  bState = digitalRead(bPin);  //9
  cState = digitalRead(cPin);  //10
  dState = digitalRead(dPin);  //11
  manualState = digitalRead(manualPin);


  ///////////////////////////////////// cycle ///////////////////////////////////////
  if (cyclePinState == HIGH) {  // Cycle OFF
    x = 0;
    if (manualState == LOW) {
      cycleState = LOW;  // Motor ON
    } else {
      cycleState = HIGH;  // Motor OFF
    }
  }
  if (cyclePinState == LOW) {
    if (currentMillis - previousMilliscycle >= cycleTime) {
      previousMilliscycle = currentMillis;
      // if the LED is off turn it on and vice-versa:
      if (cycleState == LOW) {
        cycleState = HIGH;
      } else {
        cycleState = LOW;
        x;
        x > 0;
        x++;
      }
    }
  }
  if (cycleState == LOW) {  //OPEN VALVE pwmOut1, xxx
    digitalWrite(4, HIGH);
  }
  if (cycleState == HIGH) {  //CLOSE VALVE pwmOut1, yyy
    digitalWrite(4, LOW);
  }
  //}
  //////////////////////////////////////////////////////////////////////////////////
  if (aState == LOW) {
    lcd.setCursor(1, 2);
    lcd.print("open:ON ");  //  closed
    digitalWrite(10, HIGH);
  } else {
    lcd.setCursor(1, 2);
    lcd.print("open:OFF");
    digitalWrite(10, LOW);
  }

  if (bState == LOW) {
    lcd.setCursor(10, 2);
    lcd.print("close:ON ");
    digitalWrite(11, HIGH);
  } else {
    lcd.setCursor(10, 2);
    lcd.print("close:OFF");
    digitalWrite(11, LOW);
  }

  ///////////////////////// LCD ////////////////////////////////

  if (currentMillis - previousMillislcd >= lcdTime) {
    lcd.setCursor(1, 0);
    lcd.print("COC Aerospace");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 1);
    lcd.print("Actuator test");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 3);
    lcd.print("Cycle Count ");
    lcd.print(x);
    lcd.print("  ");

    //    lcd.setCursor(1, 2);
    //    lcd.print("Cycle Time Hz ");
    //    lcd.print(cycleTime / 500 , 1);
    //    lcd.print("  ");

    //    lcd.setCursor(0, 1);
    //    lcd.print("PWM%");
    //    lcd.setCursor(11, 1);
    //    lcd.print("calC ");
    //    lcd.print(calLow, 1);
    //    lcd.setCursor(11, 2);
    //    lcd.print("calO ");
    //    lcd.print(calHigh, 1);
    previousMillislcd = currentMillis;
  }
}
[COC_4.ino|attachment](upload://h6nBBYHL0czT206XRJwCKadUhcz.ino) (4.3 KB)

// hd44780 - Version: 1.3.2
#include <hd44780.h>

// LiquidCrystal I2C - Version: 1.1.2
#include <LiquidCrystal_I2C.h>

// LiquidCrystal - Version: Latest
#include <LiquidCrystal.h>

//hd44780h_h - Version: Latest
#include <hd44780.h>

// Arduino_BuiltIn - Version: Latest
#include <Arduino_BuiltIn.h>

#include <Mouse.h>

#include <Mouse.h>

#include <LiquidCrystal.h>

#include <LiquidCrystal.h>

#include <EEPROM.h>
#include <Wire.h>
//#include <LCD.>
#include <LiquidCrystal_I2C.h> // F Malpartida's NewLiquidCrystal library
#define I2C_ADDR 0x27 // Define I2C Address for controller
//#define En_pin 2
//#define Rw_pin 1
//#define Rs_pin 0
//#define D4_pin 4
//#define D5_pin 5
//#define D6_pin 6
//#define D7_pin 7
#define BACKLIGHT 3
LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);
//float xxx;
//float yyy;
//unsigned long pwm1;
//unsigned long pwm2;

int lcdTime = 350;
unsigned long previousMillislcd = 0;

float cycleTime = 0;
int cycleTimePin = A0;
unsigned long previousMilliscycle = 0;

int cyclePin = 5; // cycle run
int cyclePinState;

int cycleState;

int cycleOutPin = 4; //cycle out

//int passState = LOW;
//int failState = LOW;
int x = 0;
int aPin = 8;
int bPin = 9;
int cPin = 10;
int dPin = 11;
int aState;
int bState;
int cState;
int dState;
int manualPin = 6;
int manualState;

/////////////////////////////////////////////////////
void setup() {
//delay (1000);
lcd.begin(20, 4);
lcd.setBacklightPin(BACKLIGHT, POSITIVE);
lcd.setBacklight(HIGH);
//lcd.print(" COC Aerospace");
Serial.begin(9600);

pinMode(8, INPUT);
pinMode(9, INPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
digitalWrite(8, HIGH);
digitalWrite(9, HIGH);
//digitalWrite(10, HIGH);
//digitalWrite(11, HIGH);
pinMode(4, OUTPUT);
pinMode(5, INPUT); // cycle run
digitalWrite(5, HIGH);
pinMode(6, INPUT);
digitalWrite(6, HIGH); //pull up
}
////////////////////////////////////////////////////
void loop() {
unsigned long currentMillis = millis();
cycleTime = analogRead(cycleTimePin);
cycleTime = cycleTime * 5;
cyclePinState = digitalRead(cyclePin);
aState = digitalRead(aPin); //8
bState = digitalRead(bPin); //9
cState = digitalRead(cPin); //10
dState = digitalRead(dPin); //11
manualState = digitalRead(manualPin);

///////////////////////////////////// cycle ///////////////////////////////////////
if (cyclePinState == HIGH) { // Cycle OFF
x = 0;
if (manualState == LOW) {
cycleState = LOW; // Motor ON
} else {
cycleState = HIGH; // Motor OFF
}
}
if (cyclePinState == LOW) {
if (currentMillis - previousMilliscycle >= cycleTime) {
previousMilliscycle = currentMillis;
// if the LED is off turn it on and vice-versa:
if (cycleState == LOW) {
cycleState = HIGH;
} else {
cycleState = LOW;
x;
x > 0;
x++;
}
}
}
if (cycleState == LOW) { //OPEN VALVE pwmOut1, xxx
digitalWrite(4, HIGH);
}
if (cycleState == HIGH) { //CLOSE VALVE pwmOut1, yyy
digitalWrite(4, LOW);
}
//}
//////////////////////////////////////////////////////////////////////////////////
if (aState == LOW) {
lcd.setCursor(1, 2);
lcd.print("open:ON "); // closed
digitalWrite(10, HIGH);
} else {
lcd.setCursor(1, 2);
lcd.print("open:OFF");
digitalWrite(10, LOW);
}

if (bState == LOW) {
lcd.setCursor(10, 2);
lcd.print("close:ON ");
digitalWrite(11, HIGH);
} else {
lcd.setCursor(10, 2);
lcd.print("close:OFF");
digitalWrite(11, LOW);
}

///////////////////////// LCD ////////////////////////////////

if (currentMillis - previousMillislcd >= lcdTime) {
lcd.setCursor(1, 0);
lcd.print("COC Aerospace");
//lcd.print(x);
//lcd.print(" ");

lcd.setCursor(1, 1);
lcd.print("Actuator test");
//lcd.print(x);
//lcd.print(" ");

lcd.setCursor(1, 3);
lcd.print("Cycle Count ");
lcd.print(x);
lcd.print("  ");

//    lcd.setCursor(1, 2);
//    lcd.print("Cycle Time Hz ");
//    lcd.print(cycleTime / 500 , 1);
//    lcd.print("  ");

//    lcd.setCursor(0, 1);
//    lcd.print("PWM%");
//    lcd.setCursor(11, 1);
//    lcd.print("calC ");
//    lcd.print(calLow, 1);
//    lcd.setCursor(11, 2);
//    lcd.print("calO ");
//    lcd.print(calHigh, 1);
previousMillislcd = currentMillis;

}
}

// hd44780 - Version: 1.3.2
#include <hd44780.h>

// LiquidCrystal I2C - Version: 1.1.2
#include <LiquidCrystal_I2C.h>

// LiquidCrystal - Version: Latest 
#include <LiquidCrystal.h>

//hd44780h_h - Version: Latest 
#include <hd44780.h>

// Arduino_BuiltIn - Version: Latest 
#include <Arduino_BuiltIn.h>

#include <Mouse.h>

#include <Mouse.h>

#include <LiquidCrystal.h>

#include <LiquidCrystal.h>


#include <EEPROM.h>
#include <Wire.h>
//#include <LCD.>
#include <LiquidCrystal_I2C.h>  // F Malpartida's NewLiquidCrystal library
#define I2C_ADDR 0x27           // Define I2C Address for controller
//#define En_pin 2
//#define Rw_pin 1
//#define Rs_pin 0
//#define D4_pin 4
//#define D5_pin 5
//#define D6_pin 6
//#define D7_pin 7
#define BACKLIGHT 3
LiquidCrystal_I2C  (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);
//float xxx;
//float yyy;
//unsigned long pwm1;
//unsigned long pwm2;

int lcdTime = 350;
unsigned long previousMillislcd = 0;

float cycleTime = 0;
int cycleTimePin = A0;
unsigned long previousMilliscycle = 0;

int cyclePin = 5;  // cycle run
int cyclePinState;

int cycleState;

int cycleOutPin = 4;  //cycle out

//int passState = LOW;
//int failState = LOW;
int x = 0;
int aPin = 8;
int bPin = 9;
int cPin = 10;
int dPin = 11;
int aState;
int bState;
int cState;
int dState;
int manualPin = 6;
int manualState;


/////////////////////////////////////////////////////
void setup() {
  //delay (1000);
  lcd.begin(20, 4);
  lcd.setBacklightPin(BACKLIGHT, POSITIVE);
  lcd.setBacklight(HIGH);
  //lcd.print(" COC Aerospace");
  Serial.begin(9600);

  pinMode(8, INPUT);
  pinMode(9, INPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  digitalWrite(8, HIGH);
  digitalWrite(9, HIGH);
  //digitalWrite(10, HIGH);
  //digitalWrite(11, HIGH);
  pinMode(4, OUTPUT);
  pinMode(5, INPUT);  // cycle run
  digitalWrite(5, HIGH);
  pinMode(6, INPUT);
  digitalWrite(6, HIGH);  //pull up
}
////////////////////////////////////////////////////
void loop() {
  unsigned long currentMillis = millis();
  cycleTime = analogRead(cycleTimePin);
  cycleTime = cycleTime * 5;
  cyclePinState = digitalRead(cyclePin);
  aState = digitalRead(aPin);  //8
  bState = digitalRead(bPin);  //9
  cState = digitalRead(cPin);  //10
  dState = digitalRead(dPin);  //11
  manualState = digitalRead(manualPin);


  ///////////////////////////////////// cycle ///////////////////////////////////////
  if (cyclePinState == HIGH) {  // Cycle OFF
    x = 0;
    if (manualState == LOW) {
      cycleState = LOW;  // Motor ON
    } else {
      cycleState = HIGH;  // Motor OFF
    }
  }
  if (cyclePinState == LOW) {
    if (currentMillis - previousMilliscycle >= cycleTime) {
      previousMilliscycle = currentMillis;
      // if the LED is off turn it on and vice-versa:
      if (cycleState == LOW) {
        cycleState = HIGH;
      } else {
        cycleState = LOW;
        x;
        x > 0;
        x++;
      }
    }
  }
  if (cycleState == LOW) {  //OPEN VALVE pwmOut1, xxx
    digitalWrite(4, HIGH);
  }
  if (cycleState == HIGH) {  //CLOSE VALVE pwmOut1, yyy
    digitalWrite(4, LOW);
  }
  //}
  //////////////////////////////////////////////////////////////////////////////////
  if (aState == LOW) {
    lcd.setCursor(1, 2);
    lcd.print("open:ON ");  //  closed
    digitalWrite(10, HIGH);
  } else {
    lcd.setCursor(1, 2);
    lcd.print("open:OFF");
    digitalWrite(10, LOW);
  }

  if (bState == LOW) {
    lcd.setCursor(10, 2);
    lcd.print("close:ON ");
    digitalWrite(11, HIGH);
  } else {
    lcd.setCursor(10, 2);
    lcd.print("close:OFF");
    digitalWrite(11, LOW);
  }

  ///////////////////////// LCD ////////////////////////////////

  if (currentMillis - previousMillislcd >= lcdTime) {
    lcd.setCursor(1, 0);
    lcd.print("COC Aerospace");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 1);
    lcd.print("Actuator test");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 3);
    lcd.print("Cycle Count ");
    lcd.print(x);
    lcd.print("  ");

    //    lcd.setCursor(1, 2);
    //    lcd.print("Cycle Time Hz ");
    //    lcd.print(cycleTime / 500 , 1);
    //    lcd.print("  ");

    //    lcd.setCursor(0, 1);
    //    lcd.print("PWM%");
    //    lcd.setCursor(11, 1);
    //    lcd.print("calC ");
    //    lcd.print(calLow, 1);
    //    lcd.setCursor(11, 2);
    //    lcd.print("calO ");
    //    lcd.print(calHigh, 1);
    previousMillislcd = currentMillis;
  }
}

`

``

`// hd44780 - Version: 1.3.2
#include <hd44780.h>

// LiquidCrystal I2C - Version: 1.1.2
#include <LiquidCrystal_I2C.h>

// LiquidCrystal - Version: Latest 
#include <LiquidCrystal.h>

//hd44780h_h - Version: Latest 
#include <hd44780.h>

// Arduino_BuiltIn - Version: Latest 
#include <Arduino_BuiltIn.h>

#include <Mouse.h>

#include <Mouse.h>

#include <LiquidCrystal.h>

#include <LiquidCrystal.h>


#include <EEPROM.h>
#include <Wire.h>
//#include <LCD.>
#include <LiquidCrystal_I2C.h>  // F Malpartida's NewLiquidCrystal library
#define I2C_ADDR 0x27           // Define I2C Address for controller
//#define En_pin 2
//#define Rw_pin 1
//#define Rs_pin 0
//#define D4_pin 4
//#define D5_pin 5
//#define D6_pin 6
//#define D7_pin 7
#define BACKLIGHT 3
LiquidCrystal_I2C  (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);
//float xxx;
//float yyy;
//unsigned long pwm1;
//unsigned long pwm2;

int lcdTime = 350;
unsigned long previousMillislcd = 0;

float cycleTime = 0;
int cycleTimePin = A0;
unsigned long previousMilliscycle = 0;

int cyclePin = 5;  // cycle run
int cyclePinState;

int cycleState;

int cycleOutPin = 4;  //cycle out

//int passState = LOW;
//int failState = LOW;
int x = 0;
int aPin = 8;
int bPin = 9;
int cPin = 10;
int dPin = 11;
int aState;
int bState;
int cState;
int dState;
int manualPin = 6;
int manualState;


/////////////////////////////////////////////////////
void setup() {
  //delay (1000);
  lcd.begin(20, 4);
  lcd.setBacklightPin(BACKLIGHT, POSITIVE);
  lcd.setBacklight(HIGH);
  //lcd.print(" COC Aerospace");
  Serial.begin(9600);

  pinMode(8, INPUT);
  pinMode(9, INPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  digitalWrite(8, HIGH);
  digitalWrite(9, HIGH);
  //digitalWrite(10, HIGH);
  //digitalWrite(11, HIGH);
  pinMode(4, OUTPUT);
  pinMode(5, INPUT);  // cycle run
  digitalWrite(5, HIGH);
  pinMode(6, INPUT);
  digitalWrite(6, HIGH);  //pull up
}
////////////////////////////////////////////////////
void loop() {
  unsigned long currentMillis = millis();
  cycleTime = analogRead(cycleTimePin);
  cycleTime = cycleTime * 5;
  cyclePinState = digitalRead(cyclePin);
  aState = digitalRead(aPin);  //8
  bState = digitalRead(bPin);  //9
  cState = digitalRead(cPin);  //10
  dState = digitalRead(dPin);  //11
  manualState = digitalRead(manualPin);


  ///////////////////////////////////// cycle ///////////////////////////////////////
  if (cyclePinState == HIGH) {  // Cycle OFF
    x = 0;
    if (manualState == LOW) {
      cycleState = LOW;  // Motor ON
    } else {
      cycleState = HIGH;  // Motor OFF
    }
  }
  if (cyclePinState == LOW) {
    if (currentMillis - previousMilliscycle >= cycleTime) {
      previousMilliscycle = currentMillis;
      // if the LED is off turn it on and vice-versa:
      if (cycleState == LOW) {
        cycleState = HIGH;
      } else {
        cycleState = LOW;
        x;
        x > 0;
        x++;
      }
    }
  }
  if (cycleState == LOW) {  //OPEN VALVE pwmOut1, xxx
    digitalWrite(4, HIGH);
  }
  if (cycleState == HIGH) {  //CLOSE VALVE pwmOut1, yyy
    digitalWrite(4, LOW);
  }
  //}
  //////////////////////////////////////////////////////////////////////////////////
  if (aState == LOW) {
    lcd.setCursor(1, 2);
    lcd.print("open:ON ");  //  closed
    digitalWrite(10, HIGH);
  } else {
    lcd.setCursor(1, 2);
    lcd.print("open:OFF");
    digitalWrite(10, LOW);
  }

  if (bState == LOW) {
    lcd.setCursor(10, 2);
    lcd.print("close:ON ");
    digitalWrite(11, HIGH);
  } else {
    lcd.setCursor(10, 2);
    lcd.print("close:OFF");
    digitalWrite(11, LOW);
  }

  ///////////////////////// LCD ////////////////////////////////

  if (currentMillis - previousMillislcd >= lcdTime) {
    lcd.setCursor(1, 0);
    lcd.print("COC Aerospace");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 1);
    lcd.print("Actuator test");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 3);
    lcd.print("Cycle Count ");
    lcd.print(x);
    lcd.print("  ");

    //    lcd.setCursor(1, 2);
    //    lcd.print("Cycle Time Hz ");
    //    lcd.print(cycleTime / 500 , 1);
    //    lcd.print("  ");

    //    lcd.setCursor(0, 1);
    //    lcd.print("PWM%");
    //    lcd.setCursor(11, 1);
    //    lcd.print("calC ");
    //    lcd.print(calLow, 1);
    //    lcd.setCursor(11, 2);
    //    lcd.print("calO ");
    //    lcd.print(calHigh, 1);
    previousMillislcd = currentMillis;
  }
}
type or paste code here`

Please edit your post to properly enclose the code in code tags.

Please delete post #7, which is an incomprehensible mess, and edit your original post to add code tags.

Directions are in the "How to get the best out of this forum" post.

Sorry for the mess, believe it or not I tried to have my reply to you formatted correctly however I could not get it to send. I will clean things up presently.

Pls do not repost again and again it is just mess here.

Kindly post complete code using code block itself

Sorry, I have no idea how do manage posting correctly.

No Issue @spreckman

As you are new here
I recommended you to read guidelines it would be very helpful for new user's

I tried to delete my previous posts however I saw no way to delete. I am truly sorry for all the confusion I caused.

I will try and enclose the code that will not compile in the "code" format in hopes that it posts properly.

Here goes.

type #include <LiquidCrystal_h'>

//#include <LiquidCrystal.h>

#include <Keyboard.h>
#include <KeyboardLayout.h>
#include <Keyboard_da_DK.h>
#include <Keyboard_de_DE.h>
#include <Keyboard_es_ES.h>
#include <Keyboard_fr_FR.h>
#include <Keyboard_it_IT.h>
#include <Keyboard_sv_SE.h>

#include <Mouse.h>

//#include <LiquidCrystal.h>


#include <EEPROM.h>
#include <Wire.h>
//#include <LCD.h>
//#include <LiquidCrystal.h>  // F Malpartida's NewLiquidCrystal library
#define I2C_ADDR 0x27  // Define I2C Address for controller
#define En_pin 2
#define Rw_pin 1
#define Rs_pin 0
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7
#define BACKLIGHT 3
LiquidCrystal_I2C.h(I2C_ADDR, En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);

int lcdTime = 250;
unsigned long previousMillislcd = 0;
float cycleTime = 0;
int cycleTimePin = A0;
unsigned long previousMilliscycle = 0;
int cyclePin = 5;  // cycle run
int cyclePinState;
int cycleState;
int cycleOutPin = 4;  //cycle out
int x = 0;
int aPin = 8;
int bPin = 9;
int cPin = 10;
int dPin = 11;
int aState;
int bState;
int cState;
int dState;
int manualPin = 6;
int manualState;

static int pinA = 2;      // Our first hardware interrupt pin is digital pin 2
static int pinB = 3;      // Our second hardware interrupt pin is digital pin 3
volatile byte aFlag = 0;  // l
volatile byte bFlag = 0;  // lon to when aFlag is set)
int encoderPos = 0;       //th to larger range than 0-255
int oldEncPos = 0;        //stores al monitor)
int reading = 0;
#define clearCounter 7
int clearState;
/////////////////////////////////////////////////////
void setup() {
  lcd.begin(20, 4);
  lcd.setBacklightPin(BACKLIGHT, POSITIVE);
  lcd.setBacklight(HIGH);
  lcd.print(" COC Aerospace");
  Serial.begin(9600);

  pinMode(8, INPUT);
  pinMode(9, INPUT);
  pinMode(10, OUTPUT);
  pinMode(11, OUTPUT);
  digitalWrite(8, HIGH);
  digitalWrite(9, HIGH);
  //digitalWrite(7, HIGH);
  //digitalWrite(11, HIGH);
  pinMode(4, OUTPUT);  //cycle out
  pinMode(5, INPUT);   // cycle run
  digitalWrite(5, HIGH);
  pinMode(6, INPUT);
  digitalWrite(6, HIGH);  //pull up

  pinMode(pinA, INPUT_PULLUP);       // set pinA as for most cases)
  pinMode(pinB, INPUT_PULLUP);       // set pinB aic
  attachInterrupt(0, PinA, RISING);  // set an iice Routine (below)
  attachInterrupt(1, PinB, RISING);  // set an iforvice Routine (below)
  pinMode(clearCounter, INPUT);
  digitalWrite(clearCounter, HIGH);
}

void PinA() {
  cli();                                       //stop interrupts happening before we read pin values
  reading = PIND & 0xC;                        // read all eight pin values then strip away all but pinA and pinB's values
  if (reading == B00001100 && aFlag) {         //check that we have both pins at detent (HIGH) and that we are expecting detent on this pin's rising edge
    encoderPos--;                              //decrement the encoder's position count
    bFlag = 0;                                 //reset flags for the next turn
    aFlag = 0;                                 //reset flags for the next turn
  } else if (reading == B00000100) bFlag = 1;  //signal that we're expecting pinB to signal the transition to detent from free rotation
  sei();                                       //restart interrupts
}
void PinB() {
  cli();                                       //stop interrupts happening before we read pin values
  reading = PIND & 0xC;                        //read all eight pin values then strip away all but pinA and pinB's values
  if (reading == B00001100 && bFlag) {         //check that we have both pins at detent (HIGH) and that we are expecting detent on this pin's rising edge
    encoderPos++;                              //increment the encoder's position count
    bFlag = 0;                                 //reset flags for the next turn
    aFlag = 0;                                 //reset flags for the next turn
  } else if (reading == B00001000) aFlag = 1;  //signal that we're expecting pinA to signal the transition to detent from free rotation
  sei();                                       //restart interrupts
}
/////////////////////////////////////////////////////////////
void loop() {

  unsigned long currentMillis = millis();
  clearState = digitalRead(clearCounter);
  if (clearState == LOW) {
    encoderPos = 0;
  }
  cycleTime = analogRead(cycleTimePin);
  cycleTime = cycleTime * 5;
  if (cyclePinState == HIGH) {  // Cycle OFF
    x = 0;
    if (manualState == LOW) {
      cycleState = LOW;  // Motor ON
    } else {
      cycleState = HIGH;  // Motor OFF
    }
  }
  if (cyclePinState == LOW) {
    if (currentMillis - previousMilliscycle >= cycleTime) {
      previousMilliscycle = currentMillis;
      // if the LED is off turn it on and vice-versa:
      if (cycleState == LOW) {
        cycleState = HIGH;
      } else {
        cycleState = LOW;
        x;
        x > 0;
        x++;
      }
    }
  }
  if (cycleState == LOW) {  //OPEN VALVE pwmOut1, xxx
    digitalWrite(4, HIGH);
  }
  if (cycleState == HIGH) {  //CLOSE VALVE pwmOut1, yyy
    digitalWrite(4, LOW);
  }
  if (currentMillis - previousMillislcd >= lcdTime) {
    cyclePinState = digitalRead(cyclePin);
    aState = digitalRead(aPin);  //8
    bState = digitalRead(bPin);  //9
    cState = digitalRead(cPin);  //10
    dState = digitalRead(dPin);  //11
    manualState = digitalRead(manualPin);
    if (aState == LOW) {
      lcd.setCursor(1, 2);
      lcd.print("S1:ON ");  //  closed
      digitalWrite(10, HIGH);
    } else {
      lcd.setCursor(1, 2);
      lcd.print("S1:OFF");
      digitalWrite(10, LOW);
    }

    if (bState == LOW) {
      lcd.setCursor(10, 2);
      lcd.print("S2:ON ");
      digitalWrite(11, HIGH);
    } else {
      lcd.setCursor(10, 2);
      lcd.print("S2:OFF");
      digitalWrite(11, LOW);
    }
    ///////////////////////// LCD ////////////////////////////////
    lcd.setCursor(1, 0);
    lcd.print("COC Aerospace");
    //lcd.print(x);
    //lcd.print(" ");

    //lcd.setCursor(1, 1);
    //lcd.print("Actuator test");
    //lcd.print(x);
    //lcd.print(" ");

    lcd.setCursor(1, 3);
    lcd.print("Cycle Count: ");
    lcd.print(x);
    lcd.print("  ");

    //    lcd.setCursor(1, 2);
    //    lcd.print("Cycle Time Hz ");
    //    lcd.print(cycleTime / 500 , 1);
    //    lcd.print("  ");

    //Serial.print("Position: ");
    //Serial.println(counter / 2);
    lcd.setCursor(1, 1);
    lcd.print("Deg: ");
    //lcd.setCursor(5, 1);
    lcd.print(encoderPos);
    //lcd.setCursor(0, 2);
    lcd.print("   ");
    previousMillislcd = currentMillis;
  }
}
`Use code tags to format code for the forum`or paste code here

I am only sending one file at a time to make sure I am attaching the code correctly.

Thank you in advance for taking the time.

Click on the "..." button, lower right corner of the post, to reveal the trash can delete icon.

"Multiple errors focused around the display driver"

Don't forget this part from the "How to get the best out of this forum" post:

  • If you get an error, post the error (copy and paste). Not just "I got an error".

I have read the guidelines, unfortunately I am unfamiliar with many of the terms that are used.

Thank you for the guidance.

This means you cannot even verify the sketch, which means it has nothing to do with the hardware. Verification can happen with no Arduino boad attached.

Did you remember to select the correct board in the IDE?

a7

I did select the Nano in the IDE. I also tried to compile on the web and also the latest downloadable IDE. Software is not my forte. I'm out of my element.

Here are the error codes that are indicated in the IDE.

LiquidCrystal_I2C  (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);
/usr/local/bin/arduino-cli compile --fqbn arduino:avr:nano:cpu=atmega328 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/010988591/build --build-path /tmp/arduino-build-9D957C09304ECE99A524C6C004A71763 --library /home/builder/opt/libraries/liquidcrystal_i2c_1_1_2 --library /home/builder/opt/libraries/hd44780_1_3_2 /tmp/010988591/COC_4

Using library HID at version 1.0 in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/HID

Using library EEPROM at version 2.0 in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/EEPROM

/tmp/010988591/COC_4/COC_4.ino:38:27: error: expected ')' before ',' token

LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);

^

/tmp/010988591/COC_4/COC_4.ino:38:29: error: no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C()'

LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);

^~~~~~

In file included from /tmp/010988591/COC_4/COC_4.ino:5:0:

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate: LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, uint8_t)

LiquidCrystal_I2C(uint8_t lcd_Addr,uint8_t lcd_cols,uint8_t lcd_rows);

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate expects 3 arguments, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(const LiquidCrystal_I2C&)

class LiquidCrystal_I2C : public Print {

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(LiquidCrystal_I2C&&)

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/tmp/010988591/COC_4/COC_4.ino:38:37: error: no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C()'

LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);

^~~~~~

In file included from /tmp/010988591/COC_4/COC_4.ino:5:0:

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate: LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, uint8_t)

LiquidCrystal_I2C(uint8_t lcd_Addr,uint8_t lcd_cols,uint8_t lcd_rows);

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate expects 3 arguments, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(const LiquidCrystal_I2C&)

class LiquidCrystal_I2C : public Print {

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(LiquidCrystal_I2C&&)

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/tmp/010988591/COC_4/COC_4.ino:38:45: error: no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C()'

LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);

^~~~~~

In file included from /tmp/010988591/COC_4/COC_4.ino:5:0:

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate: LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, uint8_t)

LiquidCrystal_I2C(uint8_t lcd_Addr,uint8_t lcd_cols,uint8_t lcd_rows);

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate expects 3 arguments, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(const LiquidCrystal_I2C&)

class LiquidCrystal_I2C : public Print {

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(LiquidCrystal_I2C&&)

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/tmp/010988591/COC_4/COC_4.ino:38:53: error: no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C()'

LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);

^~~~~~

In file included from /tmp/010988591/COC_4/COC_4.ino:5:0:

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate: LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, uint8_t)

LiquidCrystal_I2C(uint8_t lcd_Addr,uint8_t lcd_cols,uint8_t lcd_rows);

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate expects 3 arguments, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(const LiquidCrystal_I2C&)

class LiquidCrystal_I2C : public Print {

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(LiquidCrystal_I2C&&)

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/tmp/010988591/COC_4/COC_4.ino:38:61: error: no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C()'

LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);

^~~~~~

In file included from /tmp/010988591/COC_4/COC_4.ino:5:0:

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate: LiquidCrystal_I2C::LiquidCrystal_I2C(uint8_t, uint8_t, uint8_t)

LiquidCrystal_I2C(uint8_t lcd_Addr,uint8_t lcd_cols,uint8_t lcd_rows);

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:57:3: note: candidate expects 3 arguments, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(const LiquidCrystal_I2C&)

class LiquidCrystal_I2C : public Print {

^~~~~~~~~~~~~~~~~

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate: constexpr LiquidCrystal_I2C::LiquidCrystal_I2C(LiquidCrystal_I2C&&)

/home/builder/opt/libraries/liquidcrystal_i2c_1_1_2/LiquidCrystal_I2C.h:55:7: note: candidate expects 1 argument, 0 provided

/tmp/010988591/COC_4/COC_4.ino:38:75: error: expected initializer before ')' token

LiquidCrystal_I2C (En_pin, Rw_pin, Rs_pin, D4_pin, D5_pin, D6_pin, D7_pin);

^

/tmp/010988591/COC_4/COC_4.ino: In function 'void setup()':

/tmp/010988591/COC_4/COC_4.ino:76:3: error: 'lcd' was not declared in this scope

lcd.begin(20, 4);

^~~

/tmp/010988591/COC_4/COC_4.ino:77:34: error: 'POSITIVE' was not declared in this scope

lcd.setBacklightPin(BACKLIGHT, POSITIVE);

^~~~~~~~

/tmp/010988591/COC_4/COC_4.ino: In function 'void loop()':

/tmp/010988591/COC_4/COC_4.ino:141:5: error: 'lcd' was not declared in this scope

lcd.setCursor(1, 2);

^~~

/tmp/010988591/COC_4/COC_4.ino:145:5: error: 'lcd' was not declared in this scope

lcd.setCursor(1, 2);

^~~

/tmp/010988591/COC_4/COC_4.ino:151:5: error: 'lcd' was not declared in this scope

lcd.setCursor(10, 2);

^~~

/tmp/010988591/COC_4/COC_4.ino:155:5: error: 'lcd' was not declared in this scope

lcd.setCursor(10, 2);

^~~

/tmp/010988591/COC_4/COC_4.ino:163:5: error: 'lcd' was not declared in this scope

lcd.setCursor(1, 0);

^~~

Error during build: exit status 1

You have an I2C liquid crystal device, but you are using arguments like it is a parallel connected unit.

Or do you? Have an I2C liquid crystal device?

If you had software that compiled, once, you should look at that to see what worked for the LCD you actually have in front of you.

It might make sense, even, to test just that component with code you didn't write or mess with, example code.

a7

Ideally I was hoping to simply download the code that was on the original Nano and just reload it onto the new Nano, however I can not communicate to the original Nano via the USB. Perhaps there is a trick that I am missing or not using to communicate with the old Nano. Maybe there is some way for me to look at the code installed?