Hi
I bought this one, WH2004A-TMI-CT, besides power and ground, it must be connected to 6 pins, some of thenm PWM:
Do I have to precisely use those pins?
I'm planning to use the Arduino for a DCC (digital controlled model railroad) and they say pins 5 and 10 are to be dedicated for this purpose (it is related to use a "modified" PWM, so to speak).
No. You can use any available I/O pin for any of the six LCD signals. All you have to do is make sure that the 'constructor' and your connections match.
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // put your pin numbers here
An alternative is to use an I2C "backpack" to the display which means you only use two pins which are also common to any other I2C device you connect such as a RTC - or a second (third, fourth etc.) display.
Dead cheap!