# Get Started

This section includes a quick start guide to HaloCode.

**Connect HaloCode**

1\. Under "Devices", click "+" to add device.

![](/files/-Lpg0hhBNuPYrxd2Uxf9)

2\. From the pop-up Device Library page, select "HaloCode" and click "OK".

![](/files/-Lpg0hhC93vJpXYCdPqm)

**Tip:**\
☛ Click ☆ to set HaloCode as the mostly used device.\
![](/files/-Lpg0hhDWXSCJq4OgPdv)

3\. Use a micro-USB cable to connect your HaloCode to a USB port of your computer.

![](/files/-Lpg0hhEnSqVgMv7wv8z)

4\. Under "Devices", choose "HaloCode", and click "Connect".

![](/files/-Lpg0hhFeas8YxPYlpCp)

5\. The Device Connection window will pop up. The serial port of HaloCode will automatically be detected. Please click "Connect".

![](/files/-Lpg0hhGTLh3CX7T7pyq)

6\. Toggle on Upload Mode.

![](/files/-Lpg0hhH7uVizlojECfZ)

**Create a HaloCode Project**

Let's start with a simple project. When we shake HaloCode, the LED ring will light up and then go off.

1\. Drag an Events block when HaloCode is shaking to the Scripts area.

![](/files/-Lpg0hhILOJ4JXMejD8S)

2\. Add a Lighting block show () to control the LED ring of HaloCode.

![](/files/-Lpg0hhJUE9Hhy1dAM1Y)

3\. Add a Control block wait () seconds, and a Lighting block light off all the LEDs to make the LED ring go off after 1 second.

![](/files/-Lpg0hhKWPeBeMmMqjoH)

4\. Click "Upload" to upload the program to HaloCode.

![](/files/-Lpg0hhL_Re2WmqKwZ_X)

5\. Try shaking HaloCode!

![](/files/-Lpg0hhMDGKDPI-lGO48)

n


---

# 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://learn.pakronics.com.au/halocode-1/untitled.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.
