Go Down

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

ref110

Hi,

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?
Normal:

* 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?


UKHeliBob

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