> 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_pins.md).

# Meowbit的引腳編程

Meowbit上有20Pin的引腳金手指，大家可以用鱷魚夾連接不同的模組在MakeCode Arcade使用。

### MakeCode Arcade編程教學

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

#### 載入引腳插件

#### [詳細方法](https://kittenbothk.readthedocs.io/en/latest/Makecode/powerBrickMC.html)

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

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

#### 引腳積木塊

```
加入Robotbit插件時也會自動一併加入引腳插件。
```

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

#### 引腳編程

**引腳數值讀取**

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

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

**引腳數值寫入**

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

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

### Kittenblock編程教學

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

#### 引腳積木塊

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

**引腳數值讀取**

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

按A讀取P2的數位數值，按B讀取P1的類比數值。

**引腳數值寫入**

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

按A寫入P2的數位數值，按B寫入P1的類比數值。
