Mircobit Smiley Button
![microbitpic.jpeg](/proxy/?url=https://content.instructables.com/FU6/7DD1/L3N10KHH/FU67DD1L3N10KHH.jpg&filename=microbitpic.jpeg)
How might I, Martin instruct a middle schooler to make a smiley button, using a microbit and code, so that they can learn some coding.
Supplies
-Mircobit
-USB cable
-Computer
Connecting
![download (1).jpeg](/proxy/?url=https://content.instructables.com/FV0/HRVX/L3OGHJJD/FV0HRVXL3OGHJJD.jpg&filename=download (1).jpeg)
-Connect the microbit to the computer using the usb cable
-Go to https://makecode.microbit.org and start a new project.
Coding
![Screen Shot 2022-05-27 at 9.40.46 AM.png](/proxy/?url=https://content.instructables.com/F4H/RWIQ/L3OGHJIH/F4HRWIQL3OGHJIH.png&filename=Screen Shot 2022-05-27 at 9.40.46 AM.png)
-Go to input in the library and add an on button block
-Go to basic in the library and add a show leds block
-Combine those blocks by putting the show leds block inside the on button block and make a smiley face on the led block
Coding
![Screen Shot 2022-05-27 at 9.55.28 AM.png](/proxy/?url=https://content.instructables.com/FR1/G7LB/L3OGHJRW/FR1G7LBL3OGHJRW.png&filename=Screen Shot 2022-05-27 at 9.55.28 AM.png)
-Go to input in the library and add an on button block and switch it to (B pressed)
-Go to basic in the library and add a show leds block
-Combine those blocks by putting the show leds block inside the on button block and make a frowning face on the led block
Terms and Concepts
Loop- Something that repeats
Input- A way to add an instruction
LED- Light emitting diode
Finish
![Screen Shot 2022-05-31 at 11.42.02 AM.png](/proxy/?url=https://content.instructables.com/FM8/67LH/L3U69SFI/FM867LHL3U69SFI.png&filename=Screen Shot 2022-05-31 at 11.42.02 AM.png)
You have now made a Smiley Button.