Updated the code to show the global initialization of LCD