# Meowbit & IOBit

Meowbit can be used in conjunction with an IOBit to achieve even more possibilities.

### MakeCode Arcade Coding Tutorial

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

### Using IOBit and IO Pins

#### Load IOBit Extension

IOBit Extension: <https://github.com/KittenBot/meow-iobit>

#### [Loading Extensions](/programming-platforms/makecode-tutorial/kittenbot-and-makecode.md)

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

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

#### Blocks for controlling IOBit

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

#### 1. Reading and Writing Values

**1.1 Read digital values**

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

[Sample Code Link](https://makecode.com/_fD2EzsE3JVPJ)

**1.2 Write digital values**

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

[Sample Code Link](https://makecode.com/_0Eq1XdHzWXJq)

**1.3 Reading analog values**

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

[Sample Code Link](https://makecode.com/_cujbCAPbE5Hx)

**1.4 Writing analog values**

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

[Sample Code Link](https://makecode.com/_2ovaa74358EC)

#### 2. Controlling servos

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

[Sample Code Link](https://makecode.com/_iA0YjiR3sJFz)


---

# 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/meowbit/meowbit-programming-tutorial/meowbit-and-iobit.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.
