I want to build a circuit that turns 3 LEDS (L1,L2,L3) on if the button isn't pressed and turns a different set of 3 LEDS (L4,L5,L6) on when the button is pressed. Only 1 of the sets of LEDS should be able to be lit up at a time though so pressing or releasing the button will turn off the currently lit up set. I built and assembled this schematic:
When I don't press the button L1,L2,L3 light up properly. When I press the button L4,L5,L6 light up, but L1,L2,L3 don't turn off. How can I go about getting L1,L2,L3 to turn off when the button is pressed?