I am doing a project on i wanna use one 74HC595 and one 74HC165 for the inputs and outputs. And i will like to use it in one library, like the one is found at the end of that thread.
I have readed many times the entire thread, and the instructions of how to use it, is for the early versions, on which there are two libraries, one for the 165, and another for the 595.
In the combined version i dont know how to initialize the library, neither the functions to read and write on the shift registers.
Maybe the author or someone else can help me to understand better the use of that library? A little drawing showing the shared pins on the ic's will help too.
I wanna apologize for my english, i am a spanish speaker.
Well instead of the shift registers why not use a port expander.
The MCP23016 gives you 16 input/output pins for just two I2C pins, and you can have up to 8 of them connected at the same time. Where as for faster transfer using SPI you can use the MCP23S13 which again gives 16 I/O with 8 usable at the same time.
Because they use less pins and are easer to use. I use them in a lot of my projects. Yes Farnell have a postage charge but if you buy enough it is postage free. In the UK this works out at about £25.