Initialising GE Tech (geeetech.com) LCDKeypad Shield v2.0

Hi,

I picked up one of these and find it has a modified LCD4bit_mod library provided by the vendor which isn't compatible with the latest IDE. I didn't find this info in the forums, so this post is as much to record this info for myself as anything...

To initialise this shield with the LiquidCrystal library included with IDE v1.0 use this:

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

The info they provide is useful, but refers to the 4bit library from a previous versions. Pinout info:

Modified LCD4Bit Interface -- To preserve the SPI port for future use, the Digital IO pins DB7-10 and pin11 & pin 12 used in the original LCD4Bit library have been moved to DB4-7 and pin 8 & pin 9 respectively.

To save you downloading their incompatible examples, the 5 buttons are accessed through analogue pin 0 with valid values as follows:
Right = 30
Up = 150
Down = 360
Left = 535
Select = 760

The same modified Arduino library is provided for the Nuelectronics product so same info should apply.

Hoping this helps others get cracking with this shield quicker than I did :slight_smile:
Geoff

Here is a little demo sketch that includes a keypad input routine that I wrote.
It is very easy to use. Simply call adc_getkey() and you will get back
tokens that indicate which button was just pushed.

The demo sketch uses:

  • KEY_UP advances through font
  • KEY_DOWN goes back through font
  • KEY_RIGHT moves display right
  • KEY_LEFT moves display left
  • KEY_SELECT turns on/off display

Enjoy,
--- bill

keypadfont.zip (3.69 KB)