Uploading a Project (Optional)
How to upload a project?
To upload means to copy a program to the physical device.
To copy a program from the computer to the micro:bit, first we need to “translate” the program we made into a language that micro:bit understands. This process is known as compilation.
We compile the program from code to hex
(the language that
micro:bit understands). In MakeCode we just need to click on
Download
.
![Download Program](../upload_project_img/download.png)
Next, we connect the micro:bit to the computer using a USB cable.
![Connecting the USB](https://pxt.azureedge.net/blob/0f50774b7ec48a755b778a35e6c4e078fd908d6c/static/mb/device/usb-thin.jpg)
Make sure to connect the USB to the micro:bit itself, not the extension
board (if you are using one).
You will see that a device called MICROBIT
appears in your computer.
![Windows](https://pxt.azureedge.net/blob/ea3c2d68ddefdb82b3fc77660c3b2f05948e07c4/static/mb/device/usb-windows-device.jpg)
![MacOS](https://pxt.azureedge.net/blob/16ee59aa14d97d3603fbbf565ff0a0d416c98946/static/mb/device/usb-osx-device.png)
To upload the program, just copy the hex
file you just downloaded into
the MICROBIT
device that appeared in your computer.
Your new program should be running now!