Easy to setup switches puzzle with one pin

Last Updated or created 2023-03-28

I’ve posted a switches puzzle here.

I was thinking of a easier setup which is “static”.
Mine has a 65535 possibility setup, but you can make an easy puzzle with below setup.

Set D3 to
pinMode(D3, INPUT_PULLUP);

Notice that I’ve placed the wires for some switches at the bottom, so these switches need to be set in the other direction “off” than the others.
Only 7 switches matter, you could use all of them.
When using a switch with only two connections, place the switch upside-down. Now OFF is switch with ON.


is the correct setting

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *