lcd.clear is'nt working well

arielsho04:
I did what you suggested (I switched between led 2 and the rs pin) and now the led is always on...

If the LED is now on pin 1 then it has a conflict with the serial port (as you have seen).

You need to use an additional I/O pin, you cannot merely switch the existing ones around.

Stay away from pins 0 and 1. Don't forget that you can use the so called 'analog' pins.

Don