Connecting an push switch to a micro:bit
This time we are going to use a push switch to control LED On / Off.
Press the button to turn on the LED. Press the button again to turn off the LED.
What you will need
1 × micro:bit SOKIT (BBC micro:bit + SOKIT Pad)
1 × Micro USB cable
1 × LED Module
1 × Push Switch Module
1 × SOKIT CONNECTOR "I" 8cm
1 × SOKIT CONNECTOR "I" 12cm
1 × SOKIT CONNECTOR "Y" 12cm
You can see the whole program in the page below. Click “Edit” on the right top corner, and then “download”, you can download your code into Micro:bit.