Step 1
Place a
on button pressed block to run code when button A is pressed.
Step 2
Place a
show leds block inside on button pressed to display a smiley on the screen.
Step 3
Click
Download to transfer your code in your micro:bit and try pressing button A.Step 4
Add
on button pressed and show leds blocks to display a frowney when button B is pressed.
Step 5
Click
Download to transfer your code in your micro:bit and try pressing button A or B.Step 6
Add a secret mode where
A and B are pressed together. In that case, add multiple show leds blocks to create an animation…
Step 7
Click
Link of the whole program: https://makecode.microbit.org/_ETfMPP8EyD5v
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.
没有评论:
发表评论