You need to post all your code as well as the schematic.
This
void setup(){
....//only things not referring to 74HC595
}
Is nonsense, it will contain the pin mode calls for all your output pins driving the shift register.
You need to post all your code as well as the schematic.
This
void setup(){
....//only things not referring to 74HC595
}
Is nonsense, it will contain the pin mode calls for all your output pins driving the shift register.