Go Down

Topic: [LCD] Does there have to be a PWM pin connected to it? (Read 44 times) previous topic - next topic

afroraydude

OK, so on the tutorial here it says that the LCD Enable pin should connect to digital pin 11, my question is if I can connect it to a pin that doesn't have PWM, for example pin 7. That's it.

cattledog

You can connect the lcd to different pins from those in the tutorial, and they don't need to be pwm pins. Pin 7 should be fine.

Remember that if you change the pin wiring you will have to change the code to match
Code: [Select]

// initialize the library with the numbers of the interface pins
//change the numbers to match your wiring
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);


floresta

The numbers have to be in a specific order so here is how I comment it:

Code: [Select]
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);      // put your pin numbers here


Don

Go Up