> 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/futureboard/kittenblock/pins.md).

# 未來板引腳KittenBlock編程教學

## 未來板引腳KittenBlock編程教學

可以利用未來板上的引腳連接各種感應器。

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

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

### 引腳積木塊

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

#### 範例程式：讀取模擬引腳

未來板讀取模擬數值的解析度為10位或12位，數值範圍分別為0\~1023和0\~4095。

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

#### 範例程式：寫入模擬數值

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

#### 範例程式：讀取數位引腳

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

#### 範例程式：寫入數位數值

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