Hi So i understand that this is the usual pin configuration for the Arduino. There is no such thing as as a "usual pin configuration", those just happen to be the pins chosen by the author of the tutorial.
LCD RS pin to digital pin 12
LCD Enable pin to digital pin 11
LCD D4 pin to digital pin 5
LCD D5 pin to digital pin 4
LCD D6 pin to digital pin 3
LCD D7 pin to digital pin 2
But some of these pins are being used otherwise (eg: as outputs for PWM of Timer0).
My question is : does the LCD display HAVE to be connected to these pins mentioned or I can shift them to say 24-29 digital pins?
Sorry if this is a really stupid question! I really have no idea and so am asking.
You can use any available Arduino pin, including the so-called 'Analog' pins to interface with your LCD module.
All you have to do is make sure that the pins that you choose to use are called out correctly when you invoke the library.
[sarcasm]I can't understand how you could have overlooked this information. All you have to do is:
(1) find the tutorial
(2) scroll almost all the way down to the bottom of the page into the 'See Also' section
(3) click on 'Liquid Crystal Library'
(4) go to the 'Function' section
(5) click on 'LiquidCrystal()
and there you have it.
Of course the addition of some comments would clear this up in most cases without having to search out the information:
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // put your pin numbers here