Reply To: Arduino and LCD

Home Forums Arduino Board Arduino and LCD Reply To: Arduino and LCD

#9352
Ligo George
Keymaster

It is very easy to interface an LCD with Arduino Board using LiquidCrystal library.
Code Example :

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(9, 8, 7, 6, 5, 4);
void setup() {                 // set up the LCD’s number of columns and rows: let it be 16×2 LCD display.
  lcd.begin(16, 2);            // Print a given text on the LCD screen.
  lcd.print(“hello, world!”);
}

void loop() {                  // set the cursor point to 0th column, 1st line
   lcd.setCursor(0, 1);        // print the number of seconds since last reset:
  lcd.print(millis()/1000);
}

Refer following links :
http://arduino.cc/en/Tutorial/LiquidCrystal
https://electrosome.com/lcd-interfacing-with-arduino-board/

>