Skip to content

Instantly share code, notes, and snippets.

@elktros
Created September 17, 2016 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elktros/241aea3c427fc9e2c29295ffac8e2513 to your computer and use it in GitHub Desktop.
Save elktros/241aea3c427fc9e2c29295ffac8e2513 to your computer and use it in GitHub Desktop.
#include<LiquidCrystal.h>
LiquidCrystal lcd (5, 4, 3, 2, 1, 0); // 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 ("Electronichub.org"); // prints 16x2 LCD MODULE
lcd.setCursor (0,1); //sets the cursor at row 0 column 1
lcd.print ("16X2 LCD");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment