Of relevance here is the RotaryEncoderArray library it uses for accessing one or more encoders. The library uses interrupts and gives reliable output by using a state machine that deals with any bounce uncertainty in the switches as they rotate. It allows a maximum, minimum and step value to be set for each encoder. The GPIO pins used are set when an encoder is initialised.
Of relevance here is the RotaryEncoderArray library it uses for accessing one or more encoders. The library uses interrupts and gives reliable output by using a state machine that deals with any bounce uncertainty in the switches as they rotate. It allows a maximum, minimum and step value to be set for each encoder. The GPIO pins used are set when an encoder is initialised.