
I WISH lcd.begin() was the first thing that talked to the LCD. It’s this line that executes (initializes the LCD to 4bit): Is there a way to declare the lcd commands in loop() as “extern” or something? I’d like to do something like this: // include the library code:īut when I try this, I get compiler scope issues with lcd.print in the loop(). I need to “prolong” initializing of LCD hardware, and re-use it. initialize the library with the numbers of the interface pins So, instead of this: // include the library code:


The way the LCD library works is that initialization of the module happens before setup() I need to re-initialize the LCD module, by cycling its power (using a digital pin), from inside setup() or perhaps even loop() I’ve tried adding robustness to its power source, cutting down on noise issues, etc … (and will continue on that front) but in the meantime I need to hard boot the LCD without resetting the Arduino. The reason I’m asking this is that sometimes I need to recycle power on just the LCD module because it gets a glitch and garbles.
