> 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/airelated/koi/koi-kittenblock-and-micropython/koi-micropython-programming-quickstart.md).

# KOI MicroPython Programming Quickstart

KOI can be programmed using micropython.

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

### 1. Programming on KittenBlock

#### Establish a connection

{% content-ref url="/pages/JHQ3E0PHiYTUoX4mnJGZ" %}
[KOI Programming with KittenBlock QuickStart](/airelated/koi/koi-kittenblock-and-micropython/koi-programming-with-kittenblock-quickstart.md)
{% endcontent-ref %}

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

#### 2. Open the Python editor on KittenBlock.

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

### 2: KittenCode

[Tutorial](https://kittenbothk-eng.readthedocs.io/en/latest/KittenCode/interface.html)

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

### 3: Any Python IDE

#### 1. Insert an SD Card into the KOI.

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

#### 2. Open boot.py from the SD Card.

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

#### 2.1 Alternatively, manually add a file called boot.py and add the following code.

```
from fpioa_manager import *
from koi import *
# bootup comm code
```

#### 3. Add a file called main.py and write code on this file.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://sharinghub-eng.kittenbot.hk/airelated/koi/koi-kittenblock-and-micropython/koi-micropython-programming-quickstart.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
