Arduino Leonardo - Electronic Lock

Placed on

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 after 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 toggle 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

Current Page 7. The code - part 2 - The LCD 1. Introduction 2. The Schematic 3. The Keypad 4. The LCD module 5. The Servo 6. The code - part 1 - The Keypad 7. The code - part 2 - The LCD 8. The code - part 3 - The code 9. The code - part 4 - More codes 10. The code - part 5 - Setup and Loop 11. The full code Posted by

Comments

Webwinkelkeur Kiyoh Trustpilot Opencircuit