So I have a standard 16x2 LCD display with 16 pins. The LCD display works fine with every other aspect, however, the "lcd.clear" function doesn't work with "Serial.begin(ANY BAUD)". I have tried changing bauds and downgrading the board software but it still doesn't work.
Basically, instead of clearing the display like it should do, it displays a weird character with 4 horizontal lines (in one character space) and then continues to write stuff after it.
Here is my code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(1, 2, 4, 5, 6, 7);
void setup() {
pinMode(8, INPUT);
lcd.begin(16,2);
Serial.begin(9600);
}
void loop() {
lcd.print("incorrect");
delay(3000);
lcd.clear();
delay(100);
}
Whenever I delete the Serial.begin everything works fine, but when I add it the clear function doesn't work anymore.
So in this case, what happens is that the Arduino prints "incorrect", then instead of clearing the display, it prints out four horizontal lines, and then continues to print out "incorrect" infinitely.