user57994: 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. 

user33871: Pins 0 and 1 are the hardware serial pins on the Mega.  If you're going to use Serial, then you can't connect your LCD to those pins or it won't work.  Even if you are only connected to Serial through the USB, pins 0 and 1 are still acting as Tx and Rx.  

57994: <p>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.</p>

<p>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. </p>

<p>Here is my code:
</p>

<pre class="lang-cpp prettyprint-override"><code>#include &lt;LiquidCrystal.h&gt; 
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);
}
</code></pre>

<p>Whenever I delete the Serial.begin everything works fine, but when I add it the clear function doesn't work anymore.</p>

<p>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. </p>
 33871: <p>Pins 0 and 1 are the hardware serial pins on the Mega.  If you're going to use Serial, then you can't connect your LCD to those pins or it won't work.  Even if you are only connected to Serial through the USB, pins 0 and 1 are still acting as Tx and Rx.  </p>
