Attaching a Push Button Lesson

Materials: 2 alligator clips, 1 push button

UNPLUG batteries AND/OR Disconnect from computer. Get 2 alligator clips and 1 push button

Attach the Ground wire to prong A of button and then to the GRD PIN on your micro bit

TIP: Be careful the prongs are fragile

Attach the 2nd clip to prong B of the button and then to PIN 0 on your microbit

Programming the push button: When the button is pushed we want ONE LED light to show

Forever
    if PIN 0 is pressed
        show 1 LED in middle of screen
    else
        show no lights on led screen

TIP:

These instructions are based on a lesson found at http://www.teachwithict.com/pushbtton.html

Last updated