martinayotte wrote:Why not using a simple I2C GPIO Expander such MCP23017 ?
It is much simplier to use than trying to mux pins using those 74HC165 ...
Well, according to documentation and videos online, it's not suppose to be hard to use the 74HC165 either. Not sure why it's not working for me. Also, the MCP23017 cost 10 times more than the 74HC165. 10 cents vs 1 dollar. If I need 10 of those in one device, it adds up.
Btw, the 74HC165 is not a multiplexer, it's a shift register. The code of using it is almost identical to the I2C expanders, so it's not clear to me why using the MCP23017 would be easier? In what way? If anything, it's slower than SPI