Go Down

Topic: Can I change the pins when I use the library LiquidCrystal (Read 178 times) previous topic - next topic



I want to connect a display to my already existing circuit. My problem is that the pins D10 to D13 are already connected. Can I change the pin configuration of the library without problems or not?

* 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
* LCD R/W pin to ground

So I have to change pin 11 and 12, to which other pins I can connect them?


You should be able to use any pins available except 0 and 1 as long as you change the parameters when you create an instance of the LCD.  Try changing the pin assignments in a simple program first such as the LiquidCrystal Hello World example.
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Go Up

Please enter a valid email to subscribe

Confirm your email address

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
Torino, 10131