Display does not start on power on

If I understand your question, you want to see the display for x amount of time before the loop starts to execute the code?

I am not sure about this part:

But it could be that setup happens so fast you don't get a chance to see the display. I had a code awhile back with an LCD display and I wanted to see the screen for 3 seconds before the program started looping. I don't remember the exact code (and unfortunately, I lost it in a Microsoft outlook backup, which turns out is not backup but more like "HEY! let's delete everything off your computer and tell you we are backing it up and make it all unrecoverable!!" UGHH)

Anyway, here is how I did it:

setup()

//DO all of your setting up the LCD display stuff here:
serial begins, pinmodes, etc...;

Set up your LCD;
Use however many lines of code needed;
More LCD setting up, yada yada yada;

//Add a 3 second delay before entering the loop:
delay(3000); //shows display for 3 seconds before proceeding

//I suppose you could use a millis() timer instead
//but it probably isn't needed to display a screen in setup

loop ()
the rest of your code goes here;

Maybe this will help point you in the right direction.

1 Like