It does not seem to work. When no switches are pressed it reports that switch 1 is pressed. Pressing switch 2 does report properly.
I have tried removing everything except the resistor from pin 2 to ground and it still reports switch 1 is pressed. Does the tutorial code work as advertised? Anyone see and problems with with the code?
The tutorial says use a 10K pull up resistor on one switch and a 200K to 1M resistor from the pin to ground. I tried going all the way down to 50k and no joy. Strange.