Mircobit Smiley Button

by 804636 in Circuits > USB

443 Views, 2 Favorites, 0 Comments

Mircobit Smiley Button

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

-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

-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

-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

You have now made a Smiley Button.