Forcing Interrupt Service Routine only iterate once in a loop

Since you are trying to program a rotary encoder, you should immediately abandon your current path and study A Proper Rotary Encoder Algorithm.

2 Likes