# 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="koi-programming-with-kittenblock-quickstart" %}
[koi-programming-with-kittenblock-quickstart](https://sharinghub-eng.kittenbot.hk/airelated/koi/koi-kittenblock-and-micropython/koi-programming-with-kittenblock-quickstart)
{% 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.
