The LED ring of Halocode consists of 12 LEDs. The position and ID of each LED are as follows:
1. play LED animation () until done
Play the specified LED animation. There are four options: "rainbow", "spindrift", "meteor", and "firefly".
Example:
When Halocode starts up, the LED animation "rainbow" will be played.
2. show ()
Set the LEDs ring of Halocode to light up in the specified color order.
Example:
When Halocode starts up, the LED ring will light up in the specified color order.
3. show () after rotating () leds
Light up the LED ring in the color order rotated clockwise the specified number of leds.
Example:
When Halocode starts up, the LED ring will light up in the specified color order. One second later, the LED ring will light up in the color order rotated clockwise one LED.
4. all the LEDs light up ()
Light up all the LEDs the specified color.
Example:
When Halocode starts up, all the LEDs will light up green.
5. all the LEDs light up (), brightness ()%
Light up all the LEDs the specified color at the specified brightness.
Example:
When Halocode starts up, all the LEDs will light up green at 80% brightness.
6. light off all the LEDs
Turn off all the LEDs.
Example:
When Halocode starts up, all the LEDs will light up green and go off after one second.
7. light up all the LEDs with color R() G() B()
Light up all the LEDs a specified color, mixed by specified RGB color values.
Example:
When Halocode starts up, all the LEDs will light up red.
8. light up LED () with color R() G() B()
Light up the specified LED the specified color, mixed by specified RGB color values.
Example:
When Halocode starts up, LED 3 will light up red.
9. light off LED ()
Turn off the specified LED.
Example:
When Halocode starts up, all the LEDs will light up green. One second later, LED 1 will go off.
10. LED ring shows ()%
Display percentage with the LED ring.
Example:
When Halocode starts up, the LED ring will show current loudness by lighting up its LEDs.
Comments
Please sign in to leave a comment.