Today, we will see how we can use a 16X2 character LCD display with Arduino. Here is a link to the site if you want to buy one -
Character LCD Display - Amazon.in
The Circuit -
The Program -
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello world!");
}
void loop() {
}


No comments:
Post a Comment