Code to display on LCD Copy
Lesson-17 ->Introduction to LCD(Liquid Crystal Display). Copy
Code to display on LCD Copy
Steps to do coding in Tinkercad
1. Click the code editor button to open the coding panel.
2. We will be using text editor to write a code for displaying something on LCD.
Change the block editor to the text editor.
3. To write a code :
First add a library of LCD “#include”
Then define the pin connection of LCD i.e. LiquidCrystal lcd(RS, E,D4,D5, D6, D7);
Then begin the LCD using lcd.begin(16, 2) expression.
Then in the void loop function display something on lcd using lcd.print(“”) expression.
Write the code as shown below:
Back to Lesson
Login
Accessing this course requires a login. Please enter your credentials below!
Username or Email Address
Password
Remember Me
Lost Your Password?
Register
Don't have an account? Register one!
Register an Account