> 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/mcu/meowbit/coding/meowbit_iobit.md).

# 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)
