Potentiometer controlled daisy chained shift registers

Here is a thread using SPI on daisy chained 74595 shift registers.

Consult the SPI library reference for the SPI pins on the Mega.