# ucode-extension-all-blocks **Repository Path**: maxf110415/ucode-extension-all-blocks ## Basic Information - **Project Name**: ucode-extension-all-blocks - **Description**: uCode开源扩展示例 -- 积木块和连接示例 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-04-01 - **Last Updated**: 2025-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # uCode4 arduino extension Read this in other languages: English | [简体中文](Readme.md) > This example shows how to define blocks which can be controlled device for uCode4 ([See docs about blocks](https://aiedu.ubtrobot.com/open/docs/03-development/block.html)),以及部分连接方式(USB串口、websocket、UDP)([See docs about connection](https://aiedu.ubtrobot.com/open/docs/03-development/sdk/protocol.html))。 ## Getting started Run the following steps to generate `ext.ucdext` file. - step 1. initialize npm package ```bash yarn ``` - step 2. build localization files ```bash yarn i18n ``` - step 3. build extension ```bash yarn compile ``` The path of extension target file is `dist/ext.ucdext`. It can be added in uCode4 by the following steps: 1. [open uCode4 page](https://code.ubtrobot.com/) 2. click `create`--`Block programming` 3. click `Hardware`--`Add hardware` 4. Right click on the blank space, then click the `Add developer plugins` menu 5. find and choose the `dist/ext.ucdext` file ![](add-en.gif) ## About open uCode Go to "[Open uCode docs](https://aiedu.ubtrobot.com/open/docs/01-started/usv.html)" for more information.