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