Please add https://github.com/RobTillaart/rotaryDecoder Library uses an PCF8574 to read up to 4 rotary encoders with one interrupt line. Thanks, Rob