Make Micro:bit Display a Red Heart ❤️
Hello, kids! Today we're going to learn how to make Micro:bit display a cute red heart. Follow these simple steps, and you'll soon see a heart shape blinking on your Micro:bit!
Step 1: Open the MakeCode Editor
- Open a web browser on your computer.
- Visit the MakeCode editor website: makecode.yundo.org
- Click the "New Project" button.
Step 2: Write the Code
Now, let's write the code to display the red heart. Don't worry, it's easy!
- In the blocks area on the left, find the "Basic" category.
- Drag the "on start" block to the programming area.
- Again in the "Basic" category, find the "show icon" block.
- Drag the "show icon" block inside the "on start" block.
- In the "show icon" block, click the small arrow and select the "heart" icon.
Step 3: Download the Program
Now, let's download the program to your Micro:bit:
- Connect the Micro:bit to your computer using a USB cable.
- At the bottom of the MakeCode editor, click the "Download" button.
- Choose where to save the file, usually in the "Downloads" folder.
Step 4: Transfer to Micro:bit
- Find the file you just downloaded in your file explorer.
- Drag and drop the file onto the Micro:bit drive (just like a USB drive).
- Wait for the file transfer to complete; the yellow light on the Micro:bit will stop flashing.
Step 5: See the Result!
Now, your Micro:bit should be displaying a beating red heart! If you don't see it, try pressing the reset button on the back of the Micro:bit.
Congratulations! You've just written your first Micro:bit program and made it display a cute red heart. Keep exploring and see what other fun things you can create!
Remember, programming is like an adventure, full of endless possibilities. Stay curious and keep trying new ideas!