Go Down

Topic: How to tell which pins connected to the Arduino does exactly what to the LCD? (Read 11 times) previous topic - next topic

McSuperbX1

Greetings!
I'm new to community, and already have begun tweaking around with my Uno.

I came across this page, https://www.arduino.cc/en/Tutorial/LiquidCrystalSerialDisplay

Everything worked as expected, however, out of out curiosity,

In the code, this snippet is used: LiquidCrystal lcd(12, 11, 5, 4, 3, 2);


Sure, this snippet initializes the library with the number of the pins, but.. after going through the given code, I realized, how does the the Arduino know what pin does exactly what?
There are 6 pins that were initialized, so how does the Arduino plan out that which pins will send the data and which pins will do other stuff? (RS & E pins)

The code does not seem to be very intuitive about the assignment of the pins for particular tasks.

It would be cool if someone could explain the entire code in detail!
Thanks!


[PS, Im talking about the standard Hitachi LCD here!]

Go Up