Hi all,
Hope to have your advice below:
I am currently using Arduino LCD Keypad Shield with 16 col and 2 row.
May i know if it possible for me to do something as below?
Saying if i display
- Register
- Deregister
on the LCD screen..
How can i use the UP, DOWN, SELECT buttons on the shield to select the option from the display?
i came across with this tutorial and understand that button can be identified with the input voltage level
http://www.dfrobot.com/wiki/index.php?title=Arduino_LCD_KeyPad_Shield_(SKU:_DFR0009)
if (adc_key_in > 1000) return btnNONE; // We make this the 1st option for speed reasons since it will be the most likely result
if (adc_key_in < 50) return btnRIGHT;
if (adc_key_in < 195) return btnUP;
if (adc_key_in < 380) return btnDOWN;
if (adc_key_in < 555) return btnLEFT;
if (adc_key_in < 790) return btnSELECT;
But i can't find tutorial or example that shows get value from LCD screen..
Mostly lcd.setCursor(9,1);
please advise... it would be great if any sample can be referred.
Many thanks!