This chapter describes the device library and extension center of mBlock 5. The updates of devices and extensions are provided in the device library and extension center, and therefore no extra update is needed on the mBlock 5 software.

Device Library


Click the Device tab and click +.


image


The Device Library page is displayed.

image.png

Device Status

A device is in one of the following three states.

(1) Ready to go

In the device library, if a device is shown as follows, it can be directly added.


image


(2) Update available

If a device is shown with the icon image in the upper right corner, a new software version is available and you can click the icon to update it.

image


(3) New device

If a device is shown with the icon image in the upper right corner, it is newly supported by mBlock 5 and you can click the icon to download it.

image


Mostly Used Device

1. Click the star tag in the upper left corner of a device to set it to the mostly used device.

image.png

2. The mostly used device is displayed on the Device tab when you open mBlock 5 next time, which facilitates your programming.

image.png

Device Extension Center

Click the Device tab and click + extension at the bottom of the Blocks area.

image.png

The Extension center page is displayed. The extensions vary according to device.

image.png

Extension Status

An extension is in one of the following four states.

(1) Ready to go

In the extension center, if an extension is shown as follows, it can be directly added.

image

(2) Update available

If an extension is shown with the icon image in the upper right corner, a new software version is available and you can click the icon to update it.

device-extension-3.png

(3) New extension

If an extension is shown with the icon image in the upper right corner, it is newly supported by mBlock 5 and you can click the icon to download it.

image

(4) Extension added

If an extension is shown with Remove at the bottom, it is already added and you can delete it.

image.png

Add and delete Extensions

Add an extension

1. Click Add at the bottom of the extension.

image.png

2. After being added, the extension and its blocks are displayed in the blocks area.

image.png

Delete an extension

Click + extension at the bottom of the Blocks area to enter the extension center, and then click Remove at the bottom of the extension.

image.png


Note:

You can use the extension builder to add a device to the device library or customize an extension and add it to the extension center. After updating or adding a device or extension, you need to restart mBlock 5 to enable the device or extension to take effect.