74HC595 and relays

In this thread

https://forum.arduino.cc/index.php?topic=547209.0

I was testing SPI and I think I remember that I found a limitation regarding the number of 74HC165. I think I need some more information about the shiftIn() function...