How to solder microswitch to Arduino Leonardo

I am trying to solder a microswitch to my Arduino pro micro so that when it is pressed a key types and I can use it in a game. I have no idea what I am doing though so could somebody help me please?
Thanks.

Solder C(ommon) to ground, and NO (Normally Open) to an input with pullup pin.

Thanks for the help. What would an input be, is it A0 or A1 etc?

You'd normally leave the A pins for analogue inputs, but they're also digital-capable so, why not?

Ok and one final thing, what would the code be to get it to work because, like I said I have no idea how to function this.

The IDE is packed with example code

Ok I will take a look at it. Thanks for all your help!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.