??? 01/13/12 08:20 Read: times |
#185460 - Details details - and where is debounce/repeat handling? Responding to: ???'s previous message |
You have an extremely "interesting" delay loop. That is not good.
Posting code only for switch interfacing? That is not true - the code you post have lots of code lines that are obviously not for switch interfacing. Your code doesn't really care about the issues that was mentioned to you in the first answers you got - debouncing. Haven't you even tried Google to learn what debounce means? What does it matter to you if one press of "up" results in digit stepping 7 steps? Next thing - a button can be held for a long time. So what should you program do? Count up one time? Count up one step every 0.5 seconds the button is still pressed? Count up one time and then wait a second or two and if button is still pressed start to repeat every second? |