Oh I did realize that you wanted all of the code. Unfortunatley I have access to the code only thursdays. In addition you were complaing about my
PaulRB:
...pure garbage. This code has nothing to do with 74hc595.
so I don't really think posting the whole code would help anything.
EDIT: if you want the schematic I do have it in mind.
PIN 2 (PB25) -> Serial in 74HC595
PIN 4 (PC26) -> RCLK (Latch)
PIN 5 (PC25) -> SCLK (Serial clock)
OE I predefined as LOW and I am not touching this.
Same goes for SCLR I pull it on low in the beginning to clear everything and then I let this set to HIGH.