In this project, we are going to write strings to an LCD display with two buttons. The first button will change the position of the cursor and the second button will change the character. In this way, you can write the strings that you want. For this project, we are going to use the PIC16F628A microcontroller and XC8 compiler. To understand how can we write to LCD display click the link below and read the tutorial.
We are going to use the circuit that we use in LCD Interfacing with PIC Using XC8 tutorial.
Write Strings To LCD XC8 Code
The “config.h” file is the same as in LCD Interfacing with PIC Using XC8 tutorial. We add some speed effect for writing faster. You can see how it works in the video below.
With this project, you learn how to write code that can write something to an LCD display with just two buttons. You can make code to write numbers and add 1 button to change characters in another direction. Stay healthy and see you in the next tutorial or project.