Download Print this page

Sparkfun Electronics Inventor's Kit Manual page 41

For micro:bit

Advertisement

Resistor 100 Ohm 1/4 Watt PTH - 20 pack (Thick Leads)
P R T - 1 4 4 9 3
Suggested Reading
Before continuing with this tutorial, we recommend you be somewhat familiar with the concepts in
these tutorials:
Switch Basics
Analog vs. Digital
Digital Logic
Introducing the Single-Pole, Double-Throw (SPDT) Switch
The Single-Pole, Double-Throw (SPDT) switch has a common pin in the middle and then two other
pins. A connection will be made between the middle pin and one of the other pins depending on the
position of the switch.
Reading a switch is similar to a button. You need to connect the common pin to a digital General
Purpose Input/Output (GPIO) pin to the micro:bit board from a breadboard. The other pins can be
connected to 3.3V and ground. It doesn't matter which pin is which. When you move the switch, the
common pin will either be HIGH (connected to 3.3V) or LOW (connected to ground).

Advertisement

loading
Need help?

Need help?

Do you have a question about the Inventor's Kit and is the answer not in the manual?