# Get Started

This section includes a quick start guide to HaloCode.

**Connect HaloCode**

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhBNuPYrxd2Uxf9%2F0.png?generation=1569475452230473\&alt=media)

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhC93vJpXYCdPqm%2F1.png?generation=1569475452284762\&alt=media)

**Tip:**\
☛ Click ☆ to set HaloCode as the mostly used device.\
![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhDWXSCJq4OgPdv%2F2.png?generation=1569475452174781\&alt=media)

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhEnSqVgMv7wv8z%2F3.png?generation=1569475452326482\&alt=media)

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhFeas8YxPYlpCp%2F4.png?generation=1569475452223952\&alt=media)

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhGTLh3CX7T7pyq%2F5.png?generation=1569475452212083\&alt=media)

6\. Toggle on Upload Mode.

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhH7uVizlojECfZ%2F6.png?generation=1569475452216624\&alt=media)

**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.

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhILOJ4JXMejD8S%2F7.gif?generation=1569475452243195\&alt=media)

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhJUE9Hhy1dAM1Y%2F8.gif?generation=1569475452284136\&alt=media)

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.

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhKWPeBeMmMqjoH%2F9.gif?generation=1569475452329735\&alt=media)

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

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhL_Re2WmqKwZ_X%2F10.gif?generation=1569475452319400\&alt=media)

5\. Try shaking HaloCode!

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg-n4CBRhEvwKUaANo%2F-Lpg0hhMDGKDPI-lGO48%2F11.gif?generation=1569475452302942\&alt=media)

n
