Hello,
I bought ten switches on Amazon. Now I don't know how to connect them to the Arduino Pro Micro. Can anyone help me?
Thanks in advance.
This is the switch:
Toggle Switch
Hello,
I bought ten switches on Amazon. Now I don't know how to connect them to the Arduino Pro Micro. Can anyone help me?
Thanks in advance.
This is the switch:
Toggle Switch
Connect the centre pin to ground, one side to an Arduino input (doesn't matter which). Use pinMode of INPUT_PULLUP on that pin. S3 or S2 in that diagram.
Paul__B:
Connect the centre pin to ground, one side to an Arduino input (doesn't matter which). Use pinMode of INPUT_PULLUP on that pin. S3 or S2 in that diagram.
Well, not S2, if using the internal pull-up [i.e. when using INPUT_PULLUP with the pinMode() function, only use the S3 arrangement].