#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
String SerialString = "UTF-8 !§$%&/()=?aeiou,;.:-_";
void setup() {
Serial.begin(115200);
lcd.begin(16, 2);
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
if (Serial.available()) {
SerialString = Serial.readString();
}
lcd.clear();
String LCDLine1 = SerialString.substring(0, 16);
String LCDLine2 = SerialString.substring(16);
Serial.print("Line 1 of LCD:");
Serial.println(LCDLine1);
Serial.print("Line 2 of LCD:");
Serial.println(LCDLine2);
lcd.setCursor(0, 0);
lcd.print(LCDLine1);
lcd.setCursor(0, 1);
lcd.print(LCDLine2);
digitalWrite(13, LOW);
delay(100);
}