# Meowbit與IOBit

Meowbit上的引腳其實也支援Kittenbot的其他擴展板，在這節教程我們會看看Meowbit怎樣和IOBit一起使用。

### MakeCode Arcade編程教學

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

### IOBit 硬件與引腳編程

#### 載入IOBit插件

插件地址：<https://github.com/KittenBot/meow-iobit>

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

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

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

#### IOBit積木塊

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

### Meowbit與IOBit編程

#### 1. 讀寫引腳數值

**1.1 讀取數位數值**

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

[參考程式](https://makecode.com/_fD2EzsE3JVPJ)

**1.2 寫入數位數值**

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

[參考程式](https://makecode.com/_0Eq1XdHzWXJq)

**1.3 讀取類比數值**

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

[參考程式](https://makecode.com/_cujbCAPbE5Hx)

**1.4 寫入類比數值**

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

[參考程式](https://makecode.com/_2ovaa74358EC)

#### 2. 舵機編程

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

[參考程式](https://makecode.com/_iA0YjiR3sJFz)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub.kittenbot.hk/mcu/meowbit/coding/meowbit_iobit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
