@erichos
Many thanks, that worked for me. I can now put together a small matrix to handle 4 encoders to work alongside my 3 shift registers.