I have a 74HC595 8-bit shift register. When I shutdown Arduino with some pins set to high on the 595, on the next startup they are still on until I clear them in the setup functions in the program. This causes the leds connected to the register to flash.
How do I clear the 595? I have tried setting the clear pin (SCLR) low trough a pull down resistor and in the code turn it high again. So I have connected the SCLR pin both to ground (through a 10 k resistor) and to Arduino.