Originally posted by Dean Sarelius
View Post
So I changed the wiring to AB and C to common and its still works OK ... so I guess the code and the wiring is foolproof
by accident.I have never used interrupts for rotary encoders ...if you have some other more critical loop task ( like the TX interrupts ) then if the loop is fast enough to sample you get a rotary encoder or multiple REs with very little code overhead plus free debounce.
The less interrupts the better I always say.
moodz.
Leave a comment: