To solve debounce problems, you can test for PORTB = 0 (or 1 if you are triggering on a rising edge). Don't leave the ISR unless the button is in the un-pressed state.
To solve debounce problems, you can test for PORTB = 0 (or 1 if you are triggering on a rising edge). Don't leave the ISR unless the button is in the un-pressed state.
Charles Linquist
Bookmarks