Incremental rotary encoder with 128 PPR? For MIDI CC

But respecting every transition means dealing with every bounce. The point of my method is to only have four interrupts per detent even if the switch bounces. It doesn't improve accuracy, it just reduces the servicing overhead.

I don't understand what 1 count hysteresis is. Do you have a code example?