Loading...
Welcome,
Guest
. Please
login
or
register
.
May 24, 2013, 10:27:06 pm
|
Arduino Forum
::
Using Arduino
::
Programming Questions
:: lcd menu
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: lcd menu (Read 338 times)
0 Members and 1 Guest are viewing this topic.
juniorhowell
Offline
Newbie
Karma: 0
Posts: 20
lcd menu
«
on:
November 11, 2012, 11:12:15 pm »
Bigger
Smaller
Reset
I am in need of an LCD menu and I would like a suggestion for a starting point.
I am currently working on a project where an lcd with 5 button lcd keypad is used to control an led matrix.
I need to create a menu to do this for me where it has pre-loaded display options and i can choose which one to output.
I am not asking for a hand out on this,all i would like is a starting point, maybe an existing lcd menu that i could adapt to my use.
-thanks
Junior
Logged
Palliser
Venezuela
Offline
Full Member
Karma: 8
Posts: 229
Ground.......ground........always ground
Re: lcd menu
«
Reply #1 on:
November 11, 2012, 11:58:47 pm »
Bigger
Smaller
Reset
Take a look at the readme file of one Arduino LCD Menu posted by David Andrews at github. It looks pretty much what you are looking for. Regards.
https://github.com/DavidAndrews/Arduino_LCD_Menu
Logged
juniorhowell
Offline
Newbie
Karma: 0
Posts: 20
Re: lcd menu
«
Reply #2 on:
November 12, 2012, 09:47:57 pm »
Bigger
Smaller
Reset
cant get it to work with my lcd shield the sainsmart 1602
Logged
juniorhowell
Offline
Newbie
Karma: 0
Posts: 20
Re: lcd menu
«
Reply #3 on:
November 14, 2012, 12:53:41 am »
Bigger
Smaller
Reset
ok so i got my display to work with the above linked menu by adapting the pin values in the code to match my lcd now i cant get the butons to work i am not sure as how to make that happen i have looked through the code and do not quite understand were to adjust if to fit my shield
i understand that is where i had to change values to get the display to work
//Edit your particular harware setup here - See LiquidCrystal documentation for details
const int LCDD7 = 7;
const int LCDD6 = 6;
const int LCDD5 = 5;
const int LCDD4 = 4;
const int LCDE = 9;
const int LCDRS = 8;
but what should i look for to change it where it recognizes my button inputs from the shield as well
«
Last Edit: November 14, 2012, 12:56:12 am by juniorhowell
»
Logged
NickPyner
Dee Why NSW
Offline
Full Member
Karma: 5
Posts: 206
Re: lcd menu
«
Reply #4 on:
November 14, 2012, 01:22:52 am »
Bigger
Smaller
Reset
It's easy to have a bad time with LCD shield as the pinouts vary a bit but, if you have that sorted, I think it is just a matter of the buttons.
I believe the buttons are always on pin A0, and it probably isn't a good idea to use A0 for anything else. You should see in your loop something like
adc_key_in = analogRead(0); // read the value on A0
key = get_key(adc_key_in); // convert into key press
and then a subroutine, possibly called get_key, which assigns a number to the value obtained, and I believe that is where your menu stuff goes.
Logged
juniorhowell
Offline
Newbie
Karma: 0
Posts: 20
Re: lcd menu
«
Reply #5 on:
November 14, 2012, 02:31:12 pm »
Bigger
Smaller
Reset
how do i set the values of the buttons so it recognizes which one is being pushed.
Logged
juniorhowell
Offline
Newbie
Karma: 0
Posts: 20
Re: lcd menu
«
Reply #6 on:
November 14, 2012, 06:43:33 pm »
Bigger
Smaller
Reset
from what i see its pulling it from one of the libraries defined at the top when i go to inspect those libraries to see where the menu is getting its input i am having no luck at finding where to edit the code to fit my device
anybody know of any one who has used this Arduino_LCD_Menu-Master before?
Logged
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
Using Arduino
::
Programming Questions
:: lcd menu
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...