Execute function call from Main loop once.
ajit.nayak87
Posts: 76
http://paste.ubuntu.com/7037458/
Dear all,
I have below piece of code here. i wanted to execute lcd_call function once from main loop. the problem i am facing here is i could able to stay in lcd_call(),every time it wait for 5 second and execute lcd_call function , IS there any way of doing it.
Dear all,
I have below piece of code here. i wanted to execute lcd_call function once from main loop. the problem i am facing here is i could able to stay in lcd_call(),every time it wait for 5 second and execute lcd_call function , IS there any way of doing it.
Comments
If you put something inside loop(), it will do that , it will call it continuously. If you want something to be done just once, you put it in init().
If you want somehting just done once from inside loop(), the you need to set a flag or something and wrap whatever you want done once in an if statement or a while loop.
Thanks, Gordon.
right/up/down/left/.select
Initially default screen would be time
now if right key pressed once change Display to Display parameter
MENU1:In Display_parameter:
- date-time
- coordinate
- wind speed
- desired angle
- exit or back to Display parameter screen
NOTE: up/down key for navigating display screen LEFT key to exit and Display date/time RIGHT key to back to menuMENU2: Set parameter
- set date and time
- set coordinate
- set windlimit
- set timer
up/down key for increment / decrement value , LEFT key to exit, right key to change menu, Select key Set /Change valueFrom main i will call function name LCD call. If called and right key pressed it show Display parameter unless any other key being pressed once up key pressed it goes inside menu where we can use up/down key to navigate.in Display parameter it must stay in window example coordinate unless left key pressed or display menu being changed, SO similarly does with Set parameter.Let me know What change made in above code.