16x2 LCD on analog pins not working!

Hello all...
I have used the L293D motor shield on the top of my arduino for a project and had to use an LCD too. Due to the shortage of digital pins (the shield tends to use most of them), i had no choice but to connect my LCD to the analog pins with the pin declaration as follows:

LiquidCrystal lcd(A0,A1,A2,A3,A4,A5);

However, it doesn't seem to work at all. I've tried to find every fault that i can until now, but still that's a zero for me. And i haven't declared any "pinMode" for these analog pins to which my LCD is connected. Should there be anything like this at all or not?

Any help on how to proceed would surely be appreciated.


Prove that your LCD works, try it on digital pins.


Also try it on the 'analog' pins without the other shield.