Arduino and LCD

Home Forums Arduino Board Arduino and LCD

This topic contains 1 reply, has 2 voices, and was last updated by  Ligo George 2 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8858

    Lakshmisree Gopal
    Participant

    how can we interface an LCD display to Arduino?

    #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/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

string(7) "9898001"