gojkosisa
Junior Member level 3
Hello,
I'm doing some project where I want to measure temperature but not some simply device. It would have some extra features as entering in sub-menu where you can edit some extra settings. When you click some push button (Ok button) you go from main menu to this menu. In that sub-menu I have another 3 menus where I can set temperature when some alarm will be turned On, temperature when some relay will be energized and menu for calibrating sensor. I have issues with this switching from one menu to another. Basically I use four buttons (Ok, Exit, Up, Down).When press Ok go to menu for settings, with Up, Down choose what you want to change, press Ok to change that parameter and use Up and Down for correct value.When you set value, press Ok or Exit to return.Now use again Up and Down to change another parameter. Ive tried with functions (every menu is separated function) but it didn't work (stack overflow..). Also I use interrupt for blinking text to indicate what value I'm changing.
How to solve this task, is there some extra trick?
I'm doing some project where I want to measure temperature but not some simply device. It would have some extra features as entering in sub-menu where you can edit some extra settings. When you click some push button (Ok button) you go from main menu to this menu. In that sub-menu I have another 3 menus where I can set temperature when some alarm will be turned On, temperature when some relay will be energized and menu for calibrating sensor. I have issues with this switching from one menu to another. Basically I use four buttons (Ok, Exit, Up, Down).When press Ok go to menu for settings, with Up, Down choose what you want to change, press Ok to change that parameter and use Up and Down for correct value.When you set value, press Ok or Exit to return.Now use again Up and Down to change another parameter. Ive tried with functions (every menu is separated function) but it didn't work (stack overflow..). Also I use interrupt for blinking text to indicate what value I'm changing.
How to solve this task, is there some extra trick?