# 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的類比數值。


---

# 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_pins.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.
