You will learn to display characters on a LCD.
Software Discovery: Libraries
Other Discovery: Liquid Crystal Display (LCD)
Qty Part
1 LCD (16x2) w/o key shield (above image)
or w/ key shield (below image)
Software Discovery: Libraries
Other Discovery: Liquid Crystal Display (LCD)
Qty Part
1 LCD (16x2) w/o key shield (above image)
or w/ key shield (below image)
Resources: |
|
|
Lets get Coding!
#include <LiquidCrystal.h> // invoke LCD Library
LiquidCrystal lcd (8, 9, 10, 11, 12, 13); // declaring pin for LCD (standard)
void setup ()
{
lcd.begin(16,2); // initialise 16x2 LCD display
}
void loop ()
{
lcd.home (); // cursor points to (0,0) coordinate (ie. 1st char, 1st line)
lcd.print ("Day2, a year of"); // print text from (0,0)
delay (1000); // display for 1 sec
lcd.setCursor (0,1); // cursor point to (0,1) coordinate (ie. 1st char, 2nd line)
lcd.print ("togetherness!!"); // print text from (0,1)
delay (1000); // display for 1 sec
lcd.clear (); // clear LCD screen
delay (1000); // wait 1 sec before LCD displays again
}
#include <LiquidCrystal.h> // invoke LCD Library
LiquidCrystal lcd (8, 9, 10, 11, 12, 13); // declaring pin for LCD (standard)
void setup ()
{
lcd.begin(16,2); // initialise 16x2 LCD display
}
void loop ()
{
lcd.home (); // cursor points to (0,0) coordinate (ie. 1st char, 1st line)
lcd.print ("Day2, a year of"); // print text from (0,0)
delay (1000); // display for 1 sec
lcd.setCursor (0,1); // cursor point to (0,1) coordinate (ie. 1st char, 2nd line)
lcd.print ("togetherness!!"); // print text from (0,1)
delay (1000); // display for 1 sec
lcd.clear (); // clear LCD screen
delay (1000); // wait 1 sec before LCD displays again
}