> For the complete documentation index, see [llms.txt](https://sharinghub-eng.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-eng.kittenbot.hk/main-controllers/futureboard/futureboard-kittenblock-programming-tutorial/programming-with-kittenblock-gpio.md).

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