# Programming with KittenBlock: GPIO

You can connect various sensors to the edge connectors on the FutureBoard.

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

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

### GPIO Blocks

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

#### Sample Program: Reading Analog Values

FutureBoard has a 12-bit ADC for reading analog values at a higher resolution.

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

#### Sample Program: Writing Analog Values

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

#### Sample Program: Reading Digital Values

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

#### Sample Program: Writing Digital Values

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


---

# 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-eng.kittenbot.hk/main-controllers/futureboard/futureboard-kittenblock-programming-tutorial/programming-with-kittenblock-gpio.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.
