Go Down

Topic: Problem with a menu (Read 1 time) previous topic - next topic

suirammarius

Hello!

I'm using this example http://www.coagula.org/content/pages/tutorial-manage-menu-and-lcd-display-arduino#comment-931 to build a menu. The problems are:
1. Navigating through the menu, when I'm accessing some items I want to  view in real time, the value of a parameter. Is this possible?
2. I want that using this menu to be able to change some parameters using the buttons that are used to navigate; when I enter in a item to be able to go up or down a value and than store it. I'm sure this is possible but I don't know how.

Dose anyone knows how to do this?

Thank you!

PS: Is there any easiest way to build a menu that can handle what I want?

liudr

olikraus has a menu system that you can take a look at. I know exactly what you are trying to do (or do I?), A menu with numbers changing reflecting some measurements or maybe just clock, then you press right and left on the item to adjust some values. I've not seen much support of that type yet.

suirammarius

Yes! This is exactly what I need. I hope that somebody knows how to do this and and will help me, because is really important to me; I'm not building something for fun, is something for my job.
Thank you!

liudr


Yes! This is exactly what I need. I hope that somebody knows how to do this and and will help me, because is really important to me; I'm not building something for fun, is something for my job.
Thank you!


In that case there are few options. You can post on gigs and collaborations board to ask someone to do this part for you for payment. My library is not able to do what you wanted. With some heavy modification I can make it do the first (dynamic list text), but the second one is harder. How many items do you have on your menu and how many layers? We might be able to talk this over the gigs and collaborations board if you want me to help out.

DuaneB

Hi,
   This is how I handle menus, there are of course other approaches -

http://rcarduino.blogspot.com/2012/02/rc-lap-timer-go-kart-lap-timer-part-2.html

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

suirammarius

#5
Mar 28, 2012, 07:10 pm Last Edit: Mar 28, 2012, 07:25 pm by suirammarius Reason: 1

(...)
My library is not able to do what you wanted.
(...)


"With this library, you can ask user to input numbers, select from a list, or enter a string, which you can use to steer your program execution (menu) or modify how your program runs (parameters such as RPM, delay, brightness),(...)"

With this I thing it will be enough. I want to be able to modify some parameters that are used later in the sketch. I will use the menu only when it starts (to change the parameters) and only if it is necessary (if a button is high when a button is pushed -->MENU, else --> the normal sketch with the default parameters). I think that your library could handle this, couldn't it?
Hey!Are yours all the "phi" stuff ? Are you the developer?

liudr

Got your PM. Yes, I developed all the phi_x software libraries and phi-y hardware for arduino. :)
My menu library can handle the usual stuff. You can also use the library to ask user for numbers etc. But what you wished to do, with dynamically changing menu title/item texts while the user is in the menu, the library can't do it. One has to follow a procedure so that the menu content is updated every time the LCD is refreshed and/or keys are sensed. Some modification to the original library is also needed to do that. My library also supports a virtual layer where you can substitute your original keypad layout with any other layouts you later want, say start with 4 buttons and later went for a matrix keypad and ended up with two clickable rotary encoders. You don't need to change your code at all. Just modify what inputs you have and what each input represents. This layer of virtual reality can be exploited to press buttons wirelessly, over the internet, or dynamically redefine what a button does, all without complicated function calls or switch cases. Give it a go to see if you like it. If you need advanced features, let me know too.

suirammarius

#7
Mar 28, 2012, 08:41 pm Last Edit: Mar 28, 2012, 09:48 pm by suirammarius Reason: 1
Thank you!

Right now I'm downloading the the library end the documentation too.
Keep in touch!  :)

L.E.:
Wooow! The documentation is GREAT!
THANK YOU!!!
You have another PM :)

liudr


Thank you!

Right now I'm downloading the the library end the documentation too.
Keep in touch!  :)

L.E.:
Wooow! The documentation is GREAT!
THANK YOU!!!
You have another PM :)


It took me forever to get the document ready for the latest release. I hope you like the doc.

suirammarius


suirammarius

I have a problem when I try to compile an example from "phi_examples".
Quote

In file included from phi_prompt_example_int.cpp:58:
D:\Me\arduino-1.0\libraries\WProgram/WProgram.h:7:20: error: wiring.h: No such file or directory
In file included from phi_prompt_example_int.cpp:59:
D:\Me\arduino-1.0\libraries\phi_buttons/phi_buttons.h:46: error: 'byte' does not name a type
.
.
.
.
(etc)


What should I do to solve this error?

PaulS

Quote
D:\Me\arduino-1.0\libraries\WProgram/WProgram.h

The Arduino 1.0 version does not have a WProgram.h How are you getting compile errors related to a non-existant file?

suirammarius

#12
Mar 31, 2012, 01:21 am Last Edit: Mar 31, 2012, 01:28 am by suirammarius Reason: 1
Sorry!
I changed the WProgram.h with Arduino.h
Now, the error is this:
Quote

D:\Me\arduino-1.0\libraries\phi_prompt\phi_prompt.cpp: In function 'void scroll_bar_v(byte, byte, byte, byte)':
D:\Me\arduino-1.0\libraries\phi_prompt\phi_prompt.cpp:279: error: call of overloaded 'write(int)' is ambiguous
D:\Me\arduino-1.0\libraries\LiquidCrystal/LiquidCrystal.h:82: note: candidates are: virtual size_t LiquidCrystal::write(uint8_t)
D:\Me\arduino-1.0\hardware\arduino\cores\arduino/Print.h:49: note:                 size_t Print::write(const char*)

:(

PaulS

Is there something about those messages that you don't understand. They seem quite straightforward to me. Not to mention that they've been posted about a bazillion times this month.

liudr

You probably downloaded the old version. Go to the google code page and download the 1.0 version pre-release, not the 20110523 version.

Go Up