So you do not need to sense both sides of the switch, only one. If it is not one, it must be the other. There is no other option!
Thanks! I put that in just for aesthetics. I may put it in anyway for another purpose (was thinking of a master reset or speed switch, but I am not sure yet).
The second problem is that you have no pull-down resistors to pull the “sense” line (that only one) down when it is not pulled up by the switch, so you are quite likely (very likely I suspect) for it to read HIGH even when the switch is in the other position. What you need - most simply - is a 4k7 resistor in the “R1” position, and a 47k pulldown from that input pin - PB5- to ground. The 4k7 will prevent the port input from being pulled higher than Vcc.
I did discover that in my little test. I brought all the wires out of the case to connect to my breadboard. When I put in the code to “sense” the position, I saw that either way did not set the pin and that was when I realized that it was not going to ground.
My updated circuit is like this:
I am having a grand semantic leg-pull with steinie44 here, as he has (apparently?) not realised the consequence of the fact that the centre position is in fact, OFF. With no power to the circuit, if you had resistors connected to both sides of the switch, then in the centre position, both sides of the switch would literally be pulled to a logic HIGH because with no power to the logic, logic HIGH = logic LOW anyway! XD
LOL But with no power none of my code is executed anyway, but that condition did give me an idea for a “special” test mode when I apply power through a jumper. Although I did see that condition when I had the switch off while I was programming my Arduino to test my new code when I connected the USB. I do not think that will be a problem when I finally program the ATTiny85.
Thanks so much for all the help! I will post pics of my creation when I finish it!