Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/04/06 10:38
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#113600 - Sounds fine
Responding to: ???'s previous message
Mahmood Elnasser said:
My first thought was once my up or down button pressed down, it enables timer interrupt that keeps incrementing the displayed number

That's the kind of thing I'd do.

On each timer interrupt, you check if the key is still pressed: if it is still pressed, increment the display & restart the timer;
if it's not still pressed, you're done.

You could also keep track of how long the button has been pressed (ie, how many timer interrupts), so that the increment rate speeds up if you keep the key pressed...

List of 17 messages in thread
TopicAuthorDate
LCD repeat function in C            01/01/70 00:00      
   First thought            01/01/70 00:00      
      if its roundrobin            01/01/70 00:00      
         last post            01/01/70 00:00      
      Sounds fine            01/01/70 00:00      
   the one issue            01/01/70 00:00      
      stuck key            01/01/70 00:00      
      Yes            01/01/70 00:00      
         Code Review            01/01/70 00:00      
            this must be excellent switches            01/01/70 00:00      
               excellent debounce for bad switches            01/01/70 00:00      
   better code version            01/01/70 00:00      
      no comments, captals, no indenting            01/01/70 00:00      
         It could do with some improvement!            01/01/70 00:00      
            I did not comment on that, it may very w            01/01/70 00:00      
            true....            01/01/70 00:00      
               led to so much misinformation in this fo            01/01/70 00:00      

Back to Subject List