Go Down

Topic: LCD help..... (Read 3563 times) previous topic - next topic

PaulS

The keypad input is a number. The output to the LCD is numeric, sent using the print function(s) of the lcd library.

Which LCD library, if any, are you using?
Which keypad library, if any, are you using?

Sending keypad data to the lcd should be a trivial.

m3a4

Hi Paul
Thanks for taking the time to reply.   The "print fucnction(s) of the LCD library" is where I'll go look next ;D

LCD library used is LiquidCrystal.h
Keypad library is Keypad.h

I'm sure it IS trivial! :'( but ability, experience and knowledge are some of the factors in making it so.  Sadly I have only a little of one and none of the other two of those attributes.  ;D

But, I am having fun exploring this amazing world!

PaulS

Presumably, you are displaying something on the LCD now. Right? That's how you know it works...

Presumably, you are displaying some information that tells you the correct key value was read. Right? Using Serial.print?

Change how the key in data is validated, from Serial.print to LCD.print.

m3a4

Yes and yes. LCD and keypad both working with example sketches, albeit on different arduinos.
 
Just merged the sketches and got a "keypad operated matrix screen saver"!  :-[

I'll have a play! lol

badboy

i am having probs with my lcd4bit code and when  i verify and then upload it is tell me the in function 'void loop()'; error: 'key' was not declared in this scops in funtion 'in get-key(unsigned int)':

m3a4

Hi BB
I'm sure one of the GODS will be able to help far better than I can but;  

My problem above was horribly simple...  I had checked it several times and would have bet the house that it was correct!  But a typo / wrong syntax was the problem that I didn't see!

LCD.print was the answer I was looking for.  Problem solved and project completed!  
:-)

Try posting the code up here if that doesn't work for you?    

AWOL

#21
Jul 26, 2010, 01:41 pm Last Edit: Jul 26, 2010, 01:44 pm by AWOL Reason: 1
Quote
get-key

"get[glow]-[/glow]key" is either a typo in your post or your original sketch, but either way, is not a valid function name."get_key" is valid.

[edit]OK, I guess it was a typo in your post:
Quote
this scops in funtion
. You're going to have to post your sketch.[/edit]
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

pluggy

Has I have advised before in this thread (9th January) lose the lcd4bit library, it outdated and a poor kludge.  Use the included LiquidCrystal library and adjust the pin numbers and all the example sketches will work.  Its there in one of my earlier posts.........

The vendors still shipping these things advising the use of the lcd4bit library, need their genitalia adjusting.
http://pluggy.is-a-geek.com/index.html

Go Up