Get Started

Installation

Two methoes is provied.

  1. You can download the source codes on mu-github
  2. Download the excutable file mu.exe

Select Halocode mode

We have set the default mode of mu to Halocode mode, and you can select halocode mode by clicking “mode” button on top left corner.

../../_images/mode_select2.jpg

When your halocode is connected, then you will see the meesge the halocode is connected on lower left.

Upgrade firmware

This version of mu only works with halocode which is the version 25.01.004, so if the version of your halocode is old, then you should
upgrade your halocode, you can get the firmware here 25.01.004.

Then you need click the “firmware upgrade” button to select the firmware that you have just download.

../../_images/mode_select2.jpg

You will see the progress of upgrading on lower left.

../../_images/mode_select2.jpg

Congratulation, you can then control your halocode using mu.

Features

  1. Repl
  2. Script uploading
  3. firmware upgrading
  4. Plotter
  5. Code completion

Repl

Repl in Halocode is strengthened: 1. You can use Repl with uart and ble channel(need bluetooth dongle) #. Repl is enabled even when you are uploading a file

See more

Upload script

The other way to control your halocode is to upload the script.

  1. Firstly, you should add a new file by clicking the “new” button.

  2. Then, add your script in this file, for example, if you want set all the led to red color, you can write:

    import halo
    halo.led.show_all("red")
    
  3. Click the “upload” button to upload your script to your halocode.

See more

Plotter

Plotter is a basic function on mu, but we add a special function for halocode, that is
::
halo.print_plotter(value)

With this function, plotter is easier to use, for example, we can plot the sound sensor curve by upload the script

import halo
import time

while True:
    halo.print_plotter(halo.microphone.get_loudness())
    time.sleep(0.05)