> 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/wifibrick_iot/makecode/mc_kittenbotioit.md).

# Makecode Coding and KittenBot IoT

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

### Foreword

The following tutorial is for WifiBrick and Robotbit, for KOI users, some programs may need adjustments to work on KOI.

### 1: Setting Up KittenBot IoT

Create a new topic on KittenBot IoT.

[Kittenbot IoT](https://iot.kittenbot.cn/)

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

### 2: MakeCode Coding

#### Import Extensions

#### Search for KittenBot

#### Select KOI or WifiBrick depending on your hardware

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

#### WifiBrick Sample Program

By default, the MQTT host is already set to KittenBot IoT.

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

Press A to publish a light intensity data to KittenBot IoT.

Manually publish “happy” or “sad” on KittenBot IoT, Micro:bit will display a corresponding icon.

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

[Sample Program](https://makecode.microbit.org/_9omcfRLR2382)

#### KOI Sample Program

By default, the MQTT host is already set to KittenBot IoT.

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

Press A to publish a light intensity data to KittenBot IoT.

Manually publish “happy” or “sad” on KittenBot IoT, Micro:bit will display a corresponding icon.

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

[Sample Program](https://makecode.microbit.org/_A8ePehRHseDg)

### Extension Version and Updates

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

[Makecode Extension Update](https://kittenbothk-eng.readthedocs.io/en/latest/Makecode/makecode_extensionUpdate.html)


---

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

```
GET https://sharinghub-eng.kittenbot.hk/wifibrick_iot/makecode/mc_kittenbotioit.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.
