Sensing Category

1. button is pressed?

If the button of HaloCode is pressed, the report condition is met.

Example:

When HaloCode starts up, if the button is pressed, the LED animation "rainbow" will be played.


2. microphone loudness

Report current loudness detected by HaloCode's microphone. The value range is 0-100.

Example:

When HaloCode starts up, if the detected loudness is greater than 50, the LED animation "rainbow" will be played.


3. touchpad () is touched?

If the specified touchpad (0, 1, 2, 3) is touched, the report condition is met.

Example:

When HaloCode starts up, if touchpad0 is touched, the LED animation "rainbow" will be played.


4. touchpad () value

Report the strength by which the specified touchpad (0, 1, 2, 3) is touched. The value range is 0-100.

Example:

When HaloCode starts up, if the touchpad0 is touched by strength greater than 50, the LED animation "rainbow" will be played.


5. HaloCode is ()?

If HaloCode is placed in the specified position, the report condition is met. There are six options: "left-tilted", "right-tilted", "arrow-up", "arrow-down", "LED-ring-up", and "LED-ring-down".

Example:

When HaloCode starts up, if it is left-tilted, the LED animation "rainbow" will be played.


6. shaken?

If HaloCode is being shaken, the report condition is met.

Example:

When HaloCode starts up, if it is shaken, the LED animation "rainbow" will be played.


7. shaking strength

Report the strength by which HaloCode is being shaken. The value range is 0-100.

Example:

When HaloCode starts up, if the shaking strength is greater than 20, the LED animation "rainbow" will be played.


Motion Sensor

The picture above shows the three axes (x, y, z) of HaloCode and corresponding directions of the roll and pitch.

8. motion sensor acceleration (m/s²) around ()

Report the acceleration (m/s²) detected by motion sensor around the x, y, or z axis.

Example:

When HaloCode starts up, if the acceleration around the x-axis is greater than 10, all the LEDs will light up green.


9. motion sensor () angle°

Report the roll or pitch angle.

Example:

When HaloCode starts up, if the pitch is greater than 150 degrees, all the LEDs will light up red.


10. motion sensor rotation angle around ()

Report the rotation angle around the x-axis, y-axis, z-axis, or all axes.

Example:

When HaloCode starts up, if the rotation angle around the x-axis is greater than 720 degrees, all the LEDs will light up red.


11. reset rotation angle around ()

Reset rotation angle around the x-axis, y-axis, z-axis, or all axes.

Example:

When the button is pressed, rotation angle around all axes will be reset.


12. timer

Report HaloCode's timer value (measured in second, rounded to the nearest tenth).

Example:

When HaloCode starts up, if the timer is greater than 6000 seconds, all the LEDs will light up red.


13. reset timer

Reset HaloCode's timer.

Example:

When the button is pressed, the timer will be reset.


results matching ""

    No results matching ""