> 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/airelated/koi/kittenblock_micropython/kittenblock.md).

# KOI在KittenBlock編程快速開始

我們可以在Kittenblock對KOI編程，達致KOI與舞台的互動。

### 連接KOI

我們首先需要在Kittenblock與KOI建立連接。

#### 在硬件欄選擇KOI。

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

#### 點擊「連接硬件」或感嘆號連接KOI。

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

#### 點擊「開始連線」。

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

#### 連接成功。

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

#### 點擊顯示字串積木，KOI會即時有反應。

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

### KOI在KittenBlock編程

### 基本應用

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

#### 示範程式

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

### 特徵分類器

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

#### 示範程式

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

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

### 人臉追蹤

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

#### 示範程式

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

### 幾何圖形識別

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

#### 示範程式

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

### 顏色追蹤

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

#### 示範程式

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

### 條碼識別

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

#### 示範程式

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

### 語音辨識

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

#### 示範程式

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

### IOT物聯網

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

#### 示範程式

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

### 人臉辨識(需要網絡連線)

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

#### 示範程式

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

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

### 疑難排解

#### 1. 連接完KOI之後，點擊積木後KOI沒有反應。

**答：可能固件未更新，點擊上方的升級韌體即可。**

#### 2. KOI在Kittenblock中使用分類器時出現未定義報錯。

**答：未運行重置分類器。**

#### 3. KOI支援將程式上傳到KOI離線運行嗎？

**答：支援的。**
