> For the complete documentation index, see [llms.txt](https://sharinghub.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub.kittenbot.hk/functional_modules/sugar/display.md).

# Sugar二期 數碼顯示模組

![](https://kittenbothk.readthedocs.io/en/latest/_images/display_render.png)

這是一個數碼顯示模組，可以用來顯示數字或時間等信息。

### 產品參數

接口: I2C

類型：I2C 模組

### 產品接線

#### Robotbit Edu

用4PIN連接線將模組連接到Robotbit上的I2C接口。

![](https://kittenbothk.readthedocs.io/en/latest/_images/display_wire.png)

#### Robotbit 2.2

用4PIN連接線將模組連接到Robotbit上的I2C接口。

<figure><img src="/files/AlGejNJaiOP4MOf2uGhn" alt=""><figcaption></figcaption></figure>

### 編程教學

#### MakeCode編程教學

![](https://kittenbothk.readthedocs.io/en/latest/_images/mcbanner15.png)

#### 加載Sugar插件：

#### 在擴展頁直接搜尋sugar (sugar已經過微軟認證，可以直接搜尋)

![](https://kittenbothk.readthedocs.io/en/latest/_images/sugar_search.gif)

#### 你亦可以用插件地址搜尋

Sugar插件：<https://github.com/KittenBot/pxt-sugar>

#### [詳細方法](/programmingplatforms/makecode/kittenbotandmakecode.md)

### 顯示數字

{% embed url="<https://makecode.microbit.org/_YWzKK8drJ9Fa>" %}

[參考程式](https://makecode.microbit.org/_YWzKK8drJ9Fa)

### 顯示時間

#### 顯示時間參考程式

{% embed url="<https://makecode.microbit.org/_hFweWwbXYPJt>" %}

[參考程式](https://makecode.microbit.org/_hFweWwbXYPJt)

<figure><img src="/files/bPDt1LjpHGARFyWwg8Wj" alt=""><figcaption><p><br></p></figcaption></figure>

### 計時器參考程式

{% embed url="<https://makecode.microbit.org/_ATbf1m2bc8ci>" %}

{% embed url="<https://youtu.be/QH0VcT6fIsU>" %}

### 小數點積木解說

模組上有3個小數點及1個冒號可供使用。

<figure><img src="/files/4nTpm0eUA2GPrG1nBfwS" alt=""><figcaption></figcaption></figure>
