Hello,
my question is ; according to what do we select the arduino pins into the lcd pins ,and is there a certain sequence ?
for example ,can I connect the enable pin of the lcd to the arduino pin 4 ,and another time connect it to pin 6 !?
Hello,
my question is ; according to what do we select the arduino pins into the lcd pins ,and is there a certain sequence ?
for example ,can I connect the enable pin of the lcd to the arduino pin 4 ,and another time connect it to pin 6 !?
You can connect any of the LCD control and data pins to any available Arduino I/O pin. All you have to do is make sure that the connections you use agree with the list in the LiquidCrystal lcd(...); constructor. Either change the connections to agree with the constructor argument or change the constructor argument to agree with the connections.
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // put your pin numbers here
The information is nicely buried here: LiquidCrystal - Arduino Reference
Don
thanks got it