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