Go Down

Topic: New library for LCD & Keypad Shield (Read 28145 times) previous topic - next topic

fj604

Dec 11, 2010, 05:13 pm Last Edit: Dec 12, 2010, 01:06 am by fj604 Reason: 1
I made a new library for the LCD & Keypad Shield - it is available from DFRobot.com, nuelectronics.com, ekitszone.com, etc.:

http://www.dfrobot.com/index.php?route=product/product&keyword=lcd&category_id=0&product_id=51

http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=2

http://www.ekitszone.com/Products/3-lcd-keypad-shield-for-arduino.aspx

The one recommended to use with these is LCD4Bit_mod, but the standard LiquidCrystal library works just as well with modified pin numbers - use this:
Code: [Select]
LiquidCrystal(8, 9, 4, 5, 6, 7)

This library inherits LiquidCrystal and adds another method: button - to read button pushed on a keypad.

I have also included an example - a simple number guessing game that you can play with the Up, Down and Select buttons.

Download the library here:

LCDKeypad.zip - 2.7 KB

Any comments will be appreciated.

Imahilus


Mikhail

Does anyone have a copy of this? The link is dead.

Go Up