LCD 16x2 how to use the buttons

The LCD and Keypad Shield gives you a handy 16-character by 2-line display, 5 buttons and a controllable backlight.
Post Reply
andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: LCD 16x2 how to use the buttons

Post by andrew » Tue Nov 25, 2014 10:40 am

Please see the LCD Keypad Shield guide:
http://www.freetronics.com/pages/16x2-l ... tart-guide

it gives the analogRead values to expect when the buttons are pushed, and the complex example demonstrates how to have the sketch take actions when buttons are pressed.

However yes, fundamentally you need to read the value from analogue pin zero with analogRead and them make decision based on the value returned.

Post Reply