Example code for the 74HC595 Shift register.

I have tested this code with;
 -ATMega 168, 328/P, 8, 16u2, 32u4
 -ATTiny 44, 45, 84, 85, 2313