Go Down

Topic: LCD and Analog pins (Read 491 times) previous topic - next topic

hayatrajani

Hey!
I just wanted to know whether I can use analog  pins for LCD and how??
This doesn't seem to work    LiquidCrystal lcd(A0, A1, A5, A4, A3, A2);    and neither does this    LiquidCrystal lcd(14,15,19,18,17,16);
I get a garbled output on the LCD. Any sort of help would be appreciated. Thanks:-)

johnwasser

The first one should work as long as you are not using those pins for anything else.

What model Arduino are you using?

Do you have anything else attached to it?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

hayatrajani

No, I am not using those pins for any other purpose  and nor do I have anything else attached to the arduino.
I am using a custom built ATmega8 arduino.

Thanks for the reply :-)

hayatrajani

Extremely sorry, my bad :P
It is working proper. I had actually messed up the wiring.

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview