#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
String dataSerial;
void setup() {
lcd.init();
lcd.clear();
lcd.backlight();
Serial.begin(9600);
}
void loop() {
if(Serial.available()){
dataSerial=Serial.read();
lcd.setCursor(1, 1);//alamat baris=1 dan kolom=3
lcd.print(dataSerial);
lcd.print(" ");
Serial.flush();
}
dataSerial=" ";
}