Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
362 views7 pages

Microbit Block Programming Shining Sunbeam CF

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 7

Micro:bit Block Programming: Shining Sunbeams

1
Step 3: Locate the blocks you need.

 Find the [ ] block from the blue basic tab.

Step 4: Grab the block, drag and drop the block into the [ ] block.

Your code should look like this:

2
Step 5: Right click on the [ ] block and select Duplicate twice.

Step 6: Place each block below the other. See Below.

Step 7: Locate the next block that you will need.

 Find the [ ] block from the blue basic tab.

3
Step 8: Grab the block, drag and drop the block below the first [ ]
block.

Your code should look like this:

Step 9: Click on the right arrow next to 100 and select 500 ms.

Step 10: Right click on the [ ] block and select Duplicate twice.

4
Step 11: Place the two new blocks below each [ ] block as indicated
below.

Step 12: Use the diagram below to help you draw your sunbeams.

5
Step 13: View your simulator. Your sunbeams should be shining bright.

FYI: There should be a half second (500 millisecond) delay between showing each
image.

Step 14: Speed up or slow down the animation by changing the delay of 500
milliseconds.

Let’s Download the Code

Step 15: In the box that says Untitled, rename the file “Shining Sunbeams.” Then
Download.

6
Step 16: Show File in Folder.

 The file will display in your Downloads folder as a hex file. Locate the
downloaded .hex file.

Step 17: Connect the micro:bit to your computer with a USB cable. The microUSB
port is on top of the micro:bit.

Step 18: Drag the .hex file from the Downloads folder to the MICROBIT drive.

The code is now downloaded to your micro:bit!

To use the micro:bit away from your computer, disconnect the micro:bit from the
USB cable and connect the battery pack.

You might also like