adding gap between LCD prints

HI guys

At the moment im trying to sort a few things out

I want to display a message when unit powers up then click to the next option

currently i have

lcd.print("Hello World !!");
delay(5000);
lcd.print("Enter Code: ");
while (currentLength < 4)

how do i make it say hello world then a few seconds later click to the enter code message?

As a starting point and assuming you have instantiated the LCD object, something like:

void setup() {
  char code[5];
  int charsRead;
  
  Serial.begin(9600);

  lcd.print("Hello World !!");
  delay(5000);

  lcd.print("Enter Code: ");

  if (Serial.available() > 0) {
    charsRead = Serial.readBytesUntil('\n', code, sizeof(code) - 1);   // Save room for NULL
    vode[charsRead] = '\0';   // Now it's a string
    Serial.println(code);     // Shows you the code entered
  }
}

might work. The readBytesUntil() method reads input until the Enter key is sensed, or 4 characters are entered. We then add the null character so it can be used as a C string, and display it. What you do from there is up to you.

    vode[charsRead] = '\0';   // Now it's a string

Did you use vode tags to post that vode?

might work.

Hmmm... 8)

Evidently, I did:

void setup() {
  char code[5];
  int charsRead;
  
  Serial.begin(9600);

  lcd.print("Hello World !!");
  delay(5000);

  lcd.print("Enter Code: ");

  if (Serial.available() > 0) {
    charsRead = Serial.readBytesUntil('\n', code, sizeof(code) - 1);   // Save room for NULL
    code[charsRead] = '\0';   // Now it's a string
    Serial.println(code);     // Shows you the code entered
  }
}