Last active
July 27, 2017 12:16
-
-
Save iotguider/529e1c4faec8abeb5a5bc7a140ce78d2 to your computer and use it in GitHub Desktop.
Code for Interfacing 16x2 LCD in Arduino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <LiquidCrystal.h> //Library for LCD | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); //initialize the library with the numbers of the interface pins | |
//The function parameter is as follows LiquidCrystal(rs, enable, d4, d5, d6, d7) | |
void setup() { | |
lcd.begin(16, 2); //Setup number of rows andcolumns of LCD | |
} | |
void loop() { | |
lcd.setCursor(3,1); // Sets cursor to fourth column and second row. | |
// row and column count starts from 0. | |
lcd.print("IOTGUIDER"); //Prints message to LCD | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment