Initializing the LCD with a function

To use the LCD we have to use a library it's the LiquidCrystal_I2C library. So first we have to initialize the library and afther that we have to specify how many rows and characters we have on the LCD.


And to see if the LCD fully works we can togle the backlight on, off and on again. And display a welcome message to the user.


Now we can use the LCD in our further program

Initialization of the LCD