fbpx
skip to content

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:

Please enter your email address to receive your cart as a PDF.