How can I use a toggle switch with Arduino ?

MarkT:
Its a SPDT (single pole, double throw). You just need to use the centre pin and one of
the others if you want SPST.

Yes that was what I meant, I want to use it as an SPST but the center pin = Gnd and one of the others = pin 2 ?
Or the other way around ? :smiley: