Events Category

1. when HaloCode starts up

When HaloCode starts up, run the script.

Example:

When HaloCode starts up, the LED animation "spindrift" will be played.


2. when button is pressed

When the button is pressed, run the script.

Example:

When the button is pressed, all the LEDs will light up green.


3. when HaloCode is shaking

When HaloCode is being shaken, run the script.

Example:

When HaloCode is being shaken, all the LEDs will light up green.


4. when HaloCode is ()

When HaloCode is placed in the specified position, run the script. There are four options: "arrow-up", "arrow-down", "left-tilted", and "right-tilted".

Example:

When HaloCode is placed arrow-up, all the LEDs will light up green.


5. when touchpad () is touched

When the specified touchpad (0, 1, 2, 3) is touched, run the script.

Example:

When touchpad0 is touched, the LED animation "meteor" will be played.


6. when () > ()

When the value of the specified parameter (loudness or timer) is greater than the specified value, run the script.

Example:

When the timer value is greater than 360 seconds, the timer will be reset.


7. when I receive ()

When the specified message is received, run the script.

Example:

When HaloCode receives "message1", the LED animation "rainbow" will be played.


8. broadcast ()

Broadcast the specified message.

Example:

When the button is pressed, HaloCode will broadcast "message1".


results matching ""

    No results matching ""