I tried to interface an LCD screen with my Arduino but I have a problem - Nothing is being displayed on my LCD screen:
Here is the code:
#include<LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // sets the interfacing pins
void setup()
{
lcd.begin(16, 2); // initializes the 16x2 LCD
}
void loop()
{
lcd.setCursor(0,0); //sets the cursor at row 0 column 0
lcd.print("16x2 LCD MODULE"); // prints 16x2 LCD MODULE
lcd.setCursor(2,1); //sets the cursor at row 1 column 2
lcd.print("HELLO WORLD"); // prints HELLO WORLD
}
