#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup() {
lcd.begin(16, 2);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
lcd.setCursor(1, 0);
digitalWrite(LED_BUILTIN, HIGH);
lcd.print("Hello!");
delay(500);
lcd.setCursor(8, 0);
lcd.print("This");
delay(500);
lcd.setCursor(1, 1);
lcd.print("is");
delay(500);
lcd.setCursor(4, 1);
lcd.print("my");
delay(500);
lcd.setCursor(7, 1);
lcd.print("first");
delay(500);
lcd.clear();
lcd.setCursor(1, 0);
lcd.print("project.");
delay(500);
lcd.setCursor(9, 0);
lcd.print("Enjoy!");
delay(1000);
lcd.clear();
}
Comments