I have a tracked cambot with two motors each of which has a hall effect sensor with two signal outputs. The signal outputs are connected to a ModMyPi MCP23017 HAT with i2c address 0x20. Initially I want to get a rev count from each motor and its direction and later be able to set accurate movement patterns.
The example rotary encoder code on the PIGPIO site looks a good start point if the connections were direct to the PI (v3). I can see that PIGPIO has i2c capabilities but I can't work out how I can 'define' the pins in order fro the rotary encoder code to work with the connections to the MCP23017 pins.
It seems that the MCP23017 pins should operate in the same way as the Pi GPIOs once set up. Has anyone found some 'interface' code that might help me or an alternative approach that might be easier for a novice?