Tuesday, 20 February 2018

Week 1 exercise 1 introduction to code editor for micro:bit

 Introduction to code editor for micro:bit

This introduction covers creating a new project which outputs an image to the led screen of the micro:bit device with the code block editor

Step 1
Connect your micro:bit to the computer via the usb cable and open the code editor which is found at https://makecode.microbit.org/# . 

Step 2 
Click basic and select 'show icon'
The show icon code block will then appear in the editor window



Step 3
Drag the 'show icon' code block into the 'on start' function


Step 6 
Now lets save the file. Select  the text field next to the save button and tupe in getting-started. This will be the file name for the project. Go ahead and click the save button to the right of this text field. This will download the code to you computer saving it as a .hex file. Copy this file to the micro:bit, as the data is transfered to the micro:bit a light will flash showing that a transfer is in progress. Visit https://makecode.microbit.org/device/usb for more information on uploading files to the micro bit.





No comments:

Post a Comment