You can use any available IO pins (including the so called 'analog' pins) on the Arduino to drive your LCD.
The LiquidCrystal lcd(. . . ); expression is called the 'constructor.
It is the function of the numbers within the argument of the constructor (the string of numbers in parentheses) to tell the Liquid Crystal library which Arduino pin is connected to which LCD pin.
This is all explained, rather poorly, in the documentation . Fortunately it is almost impossible to find this page.
It would all be much clearer if the perpetrators of the library and the authors of the Tutorial had been more liberal with their use of comments:
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd( 7, 8, 9, 10, 11, 12); // put your pin numbers here
floresta:
You can use any available IO pins (including the so called 'analog' pins) on the Arduino to drive your LCD.
The LiquidCrystal lcd(. . . ); expression is called the 'constructor.
It is the function of the numbers within the argument of the constructor (the string of numbers in parentheses) to tell the Liquid Crystal library which Arduino pin is connected to which LCD pin.
This is all explained, rather poorly, in the documentation . Fortunately it is almost impossible to find this page.
It would all be much clearer if the perpetrators of the library and the authors of the Tutorial had been more liberal with their use of comments:
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd( 7, 8, 9, 10, 11, 12); // put your pin numbers here
Don
Don,
You need to call him.
That's what the telephone number he posted is for.
He's in India.