Monday, 26 September 2016

Lesson 9: Activity 2(LCD Shield)

Lesson 9 

Activity 2: LCD Shield

Material Needed:
  • Laptop
  • USB cable
  • Arduino Board
  • LCD Shield

Codes:

#include <LiquidCrystal.h>
LiquidCrystal lcd (8,9,4,5,6,7);
void setup()
{
  lcd.begin(16,2);
}
void loop()
{
  lcd.home();
  lcd.print("How are you ");
  delay (500);
  lcd.setCursor(0,1);
  lcd.print("today???");
  delay (500);
  lcd.clear();
  delay (500);
}

* Note: Please change the Pin value from the previous activity



No comments:

Post a Comment