??? 07/21/06 23:02 Read: times |
#120831 - change detect needed Responding to: ???'s previous message |
Ashwin V said:
But i'm having problems with it, if button is pressed the LED flickers until it's released and the button has to be pressed for more than 5secons to change it's state. sometimes it doesn't even change the state.
Then it works exactly as it was written down. Your fault is, you must not detect the pressed state to do an action. You must detect only the change from the released to the pressed state to do an action. On other threads there are vertical counter examples for debouncing and change detect of up to 8 keys simultaneously. Peter |
Topic | Author | Date |
Problem with switches. | 01/01/70 00:00 | |
well, what is FLAG | 01/01/70 00:00 | |
simple logic | 01/01/70 00:00 | |
what is the difference | 01/01/70 00:00 | |
It is application specific | 01/01/70 00:00 | |
Good at checking if key IS pressed/ | 01/01/70 00:00 | |
Schmidt triggers | 01/01/70 00:00 | |
you are very kind![]() | 01/01/70 00:00 | |
change detect needed | 01/01/70 00:00 |