简单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”的驱动出现。请注意,这不是一个普通的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系统“发送到”

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.