You can assign any digital pin to any LCD input, but you must make sure that the correct pins are matched to the LCD pins in the constructor.
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // put your pin numbers here
The only exception (on the 328 boards that bring them out) is pins A6 and A7 which are analog inputs only.
The Uno doesn't bring them out (because the DIP version of the 328 doesn't).
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16