快速入门

第一步:连接

使用micro USB线缆连接micro:bit到你的电脑。 MAC,PC,Chromebooks以及Linux系统(包括树莓派)都统统支持。它有一个有趣的应用程序,来试试吧!

在你的电脑上,micro:bit将以“MICROBIT”的驱动出现。请注意,这不是一个普通的U盘!

第二步:编程

Using one of our fantastic editors, write your first micro:bit code. 比如拖放一些方块并在Javascript Blocks编辑器的仿真工具中运行你的程序,如下图所示。

Click here to try making this example yourself

Step 3: Download It

在编辑器中点击下载按钮。 此时将下载一个“hex16进制”文件。这是一个micro:bit能够识别的程序压缩格式。 一旦hex文件被下载,就像复制粘贴一个文件到U盘里一样复制到micro:bit。 在Windows系统上,你可以右键点击,选择“发送到Micro:bit”。

Windows系统“发送到”

Mac系统拖拽

Step 4: Play It

The micro:bit will pause and the yellow LED on the back of the micro:bit will blink while your code is programmed. Once that’s finished the code will run automatically!

The MICROBIT drive will automatically eject and come back each time you program it, but your hex file will be gone. The micro:bit can only receive hex files and won’t store anything else!

What cool stuff will you create? Your micro:bit can respond to the buttons, light, motion, and temperature. It can even send messages wirelessly to other micro:bits using the ‘Radio’ feature.

Check out the ideas 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!