Place a on button pressed
block to run code when button A is pressed.
Place a show leds
block inside on button pressed
to display a smiley on the screen.
Click Download
to transfer your code in your micro:bit and try pressing button A.
Add on button pressed
and show leds
blocks to display a frowney when button B is pressed.
Click Download
to transfer your code in your micro:bit and try pressing button A or B.
Add a secret mode where A
and B
are pressed together. In that case, add multiple show leds
blocks to create an animation…
Click Download
to transfer your code in your micro:bit and show it off to your friends! Link of the whole program: https://makecode.microbit.org/_ETfMPP8EyD5v
This article comes from Smiley Buttons.
DownLoad Url osoyoo.com