#include <LiquidCrystal.h>
LiquidCrystal lcd(5, 6, 7,8,9,10);
// LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
unsigned char x;
void setup()
{
lcd.begin(16, 2);
Serial.begin(9600);
Serial.println("Helllo!");
lcd.clear();
}
void loop(){
while(Serial.available()!=0) {
x=Serial.read();
if(x==10)
continue;
Serial.println(x); // Use this to show the Wokwi is sending the character
// terminated with an Line feed (due to us pressing enter while sending the data)
// That is why, we are getting the space in between
lcd.write(x);
delay(100);
}
}