Day 5 trapped in my broken spaceship. I managed to cascade two SN74HC595 SIPO modules together to get 16 lights working front to back. The I2C computer is functioning.
I placed two 100μf capacitors on the 5V power bus just outside the 5V connections of slave 1 and 4 to clean up the DC power.
7 connections to Slave 1 for SN74HC165 and SN74HC595. 16 dip switches going to 16 LEDs. So 7 connections controls 32 things.
The two SN74HC595N SIPO Shift Registers are cascaded together.
Master – Slave HC74HC595N Pin 9 to pin 13: Black Pin 11 to pin 11: Blue: Pin 12 to pin 12: White
Grounds and 5V are on the same buses.
I found in the back of the ship some 8 dip switches and SN74HC165 PISO shift registers. In order to save power in the ship, I connected each LED to a dip switch.
Dip switch 1 : front Red LED Dip switch 2: front Blue LED