[PIC}Discriminating between button presses
David C Brown <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.pic |
|---|---|
| Message-ID | <CAFo_nNp9wBp-Z4DAYjpFnZpzS1bZNtjqHhLAb+2Y23A=yBZjmw@mail.gmail.com> |
Using mid range 16bit PICs I am attempting to write an algorithm that can discriminate between short - less than 1 second - and long - greater than 3 second - button presses. I have written some thing which works but I am not entirely satisfied with it and would appreciate and guidance/suggestion __________________________________________ David C Brown 43 Bings Road Whaley Bridge High Peak Phone: 01663 733236 Derbyshire eMail: [email protected] SK23 7ND web: www.bings-knowle.co.uk/dcb <http://www.jb.man.ac.uk/~dcb> *Sent from my etch-a-sketch*