# MicroCode Programming Tutorial

#### Using MicroCode <a href="#microcode-yong-fa" id="microcode-yong-fa"></a>

MicroCode is supported by Newbit, it can run on Micro:bit V2.

​[MicroCode](https://microsoft.github.io/microcode/#H4sIAMDPv2MAA32OWwuCMBiG/1JmB3aZIrXhFJmH5V1lwre0AhWdv75PZ9BVVy8PvKe7Zv2tJs/8mNZUvfe0OkBYtah0UY7aQDJ6IEUPkaC7TDMnTAzHhoMAWFGK4cdP//q5chwKyPEZpFw1+CPG/Svmt5Fghe8yZ+aHN3B35sDwSnMPu6aMbS2b5muZWsQ/4Tbght2SpVdMua939rhsnUs2XjLSUfWCQtEucDeaAyMf85b1ohABAAA=)​

Download the hex file for Micro:bit V2.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FobfTLjEXMR2WeUWdtZrd%2Fimage.png?alt=media&#x26;token=52139623-770d-445c-bcbf-3a6c1c035836" alt=""><figcaption></figcaption></figure>

Upload the hex file to Micro:bit V2.

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FF5le5FzVBBYbzLXGW9BL%2Fimage.png?alt=media&#x26;token=6beb0b1e-5a90-46da-9c6e-3035dfd592c5" alt=""><figcaption></figcaption></figure>

Connect a battery to Newbit.

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/newbit2.png" alt=""><figcaption></figcaption></figure>

The screen will show the MicroCode interface.

<figure><img src="https://kittenbothk.readthedocs.io/en/latest/_images/newbit3.png" alt=""><figcaption></figcaption></figure>


---

# 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/extension-boards/newbit/newbitmicrocode.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.
