Skip to main content
2 of 2
Copy edited. Eliminated the sentence fragment. Used a more direct cross reference (as user names can change at any time).

As an extension to Dario.Casciato’s response, there are not only I²C I/O expanders, but also the simple 74HC595 IC, which can be cascaded and used via Arduino's shiftOut function. It needs three signal pins for 8 / 16 / 24 ... outputs.

The link is not a purchase recommendation, but rather a technical hint.