PORTB change interrupt interrupts twice when :
first > the pin goes low
Second > the pin goes high.
Thus, pin toggle happens twice and ends up at the same state.
You should use a flag, or bounce until the second interrupt occurs.
____________
PORTB change interrupt interrupts twice when :
first > the pin goes low
Second > the pin goes high.
Thus, pin toggle happens twice and ends up at the same state.
You should use a flag, or bounce until the second interrupt occurs.
____________
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks