LCD Keypad Shield

LCD Keypad Shield: Getting Started

Plug the shield on, print your first line of text.

No wiring, one include

The LCD Keypad Shield presses straight onto the HERO board's headers. It talks to the board on pins 8, 9, 4, 5, 6 and 7, which is exactly what the LiquidCrystal lcd(8, 9, 4, 5, 6, 7) line at the top of every sketch in this module declares. LiquidCrystal is built into the IDE; nothing to install.

lcd.begin(16, 2) tells the library the screen is 16 characters wide and 2 rows tall. lcd.print() writes from wherever the cursor is, starting top-left.

If you upload this and see nothing, go back to the first lesson and turn the contrast screw.

Hello, LCD

Ideas for later

Anything that produces a value can be shown here: a light sensor, a temperature reading, a score in a game, a menu you steer with the buttons. The rest of this module gives you the pieces: buttons, custom characters and scrolling.