Go Down

Topic: How to use LCD with Arduino Mega 2560 (Read 1 time) previous topic - next topic

xpleria

I want to know the pin connections for Arduino Mega2560 and a 16x2 HD44780 compatible LCD display.

woody_unreal

none are set in stone here is mine
Code: [Select]
LiquidCrystal lcd(52,50,48,46,44,42);
compaired to
Code: [Select]
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

you just have to keep them in the same order

floresta

#2
May 12, 2012, 04:16 pm Last Edit: May 12, 2012, 04:19 pm by floresta Reason: 1
All it would have taken is a few more comments in the example sketch ....

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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy