#include <LiquidCrystal.h>
LiquidCrystal lcd(13,12,10,9,8,7,6,5,4,3); //RS, E, D0 to D7
String name;
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
Serial.begin(9600);
Serial.println("\t\t\tWelcome");
Serial.println("Please enter your text and press enter ");
delay(1000);
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available())
{
lcd.clear();
name = Serial.readString();
}
for(int i = 0; i<=30; i++)
{
lcd.print(name[i]);
lcd.autoscroll();
delay(100);
}
}