#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0

    Designing MENU based on KEY PRESS EVENT


    Hello everyone,

    I am designing a menu driven program that depends upon key event. There are 4 keys for menu functionality one to enter into menu, right and left key to traverse and changing state and enter key to set changed settings, that will rum on my AVR atmega32.

    menuKey
    |
    |-> A
    | |_(enter Key) -> 1 or 2 (change using right and left key)
    |-> B
    |_(enter Key) -> 3 or 4 (change using right and left key)

    Above i have mentiond flow of menu. I need a good and optimise logic for tha same. I have programmed using switch case but it is not optimised so i need a good logic.

    Please give me suggestions,

    Ashi
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,841
    Rep Power
    480
    Don't you just set bit 5 or 6 to change ASCII uppercase to ASCII lowercase?
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0
    I want to design a menu...not able to understand what you mean about changing from uppercase to lowercase.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    I am facing same problem while doing this activity


    I too need help on same problem. As i am facing same kind of problem while executing this. Kindly, provide me with some solutions.


    Natalia
    website:www dot groffr dot com
    phone: 8080801011
  8. #5
  9. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,841
    Rep Power
    480
    Since "switch case" likely referred to the c switch statement rather than to upper/lower case ASCII, my post was nothing but bad noise. Sorry.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo