I’m trying to use a SPDT switch as an on/off switch, using the schematic below. I’ve received the PCB, but no matter which position the switch is in, the attiny still gets powered, which just randomly flashes LEDs. I have the switch on the back of the board which is copper filled to the VCC net, so I tried cutting off pin 3 on the switch to see if that would work, but that had no effect. The only way I was able to get the switch to not turn on the LEDs was to touch some wire to pin 3 of the switch to ground, but using a multimeter on the attiny was giving a reading of 3v.
Is using a SPDT switch as an on/off switch just not possible?
I chose that switch because I couldn’t find any SPST switches under the Slide Switch category on digikey. I’ve now found some under the DIP Switch category, but I’d like to make use of the switches I already have.