在5個簡易步驟中學習使用micro:bit

第一步:連接它

Connect the micro:bit to your computer via a micro USB cable (using a phone or tablet? Click here to discover how to code the micro:bit from a mobile device). Macs, PCs, Chromebooks and Linux systems (including Raspberry Pi) are all supported. It comes with a fun application, give it a try!

在你的電腦上,micro:bit會顯示成一個稱為「MICROBIT」的驅動器。請留意,它不是普通的USB磁碟!

第二步:用它來編寫程式

Using one of our fantastic editors, write your first micro:bit code. 例如拖放一些方塊,並在Javascript 方塊編輯器的模擬裝置上嘗試運行你的程式,如下圖所示。

Click here to try making this example yourself

Step 3: Download It

點擊編輯器上的下載按鈕 一個'hex'檔案會被下載,它是你的程式的壓縮格式,使micro:bit能夠辨識它。 當這個hex 檔案下載完成後,複製它到你的micro:bit上,就如複製檔案到USB驅動器上一樣。 在Windows上你可以右鍵單擊,選擇「傳送→MICROBIT」。

Windows系統「傳送」

using Send To context menu on Windows

Mac系統的拖放

第四步:操作它

當你的代碼正在程式化的時候,micro:bit會暫停運作,背面的黃色LED燈則不斷閃爍。 程式化完成後,代碼會自動運行。 The MICROBIT drive will automatically eject and come back each time you program it, but your hex file will be gone. micro:bit只能夠接收hex檔案,不會儲存其它檔案!

你會創作什麼優秀的作品呢? micro:bit能夠對按鈕、光線、移動及溫度作出反應。它甚至可以利用「無線電通訊」功能無線傳送訊息到其他micro:bit上。

Check out the hardware page for more inspiration.

Step 5: Master it

This page shows you how to get started with micro:bit, but as well as JavaScript Blocks you can use Python and text-based JavaScript to program your micro:bit. Head over to the Let's Code page to see the different languages, or check out the ideas page for some things you might like to try out.

Coding the micro:bit from a phone or tablet

Using a mobile device? You can code the micro:bit from a phone or tablet using Bluetooth. Tap here to learn more and get started!

Selecting this opens external content from our support system, which adheres to their privacy policy.