We've just updated the V3 documents. Here is the structure of the command
5.3 Rainbow Ring interaction
The following are the commands used to control your Rainbow ring. Included are the parameters needed and the terminal command to execute each command.
//Term command
#set_led_rgb(LED, INT, INT, INT); //b The first parameter is the LED number from 0-11, INT = intensity 0-64
#set_led_unicolor(LED, RGB, Int); //u RGB = 0, 1, OR 2.
#set_all_rgb(R, G, B); //r int = intensity i.e.:RED 00, GREEN 25, BLUE 34: set_all_rgb(00, 25, 34);
#set_all_unicolor(RGB, Int); //a
#rotate(color, dir); //o Color, direction, color is set from 0-7 and rotation from 0-2
#clearCommand(); //- No parameters needed
#random_leds (); //x indicate how many LEDs to light and the delay between each
#fader (); //f how many times to repeat
#fader_hue (); //h how many times to repeat
#sequence(); //S how many times to repeat *NOTE: CAPITAL S
#color_wave (0) ; //w amount to increase ,delay
Each terminal command should be preceeded by a "c" and ended with an "s". These commands are case sensitve.
EXAMPLE:co029901s
This will send the command (c) rotate(o) the color Blue (02) times (99) clockwise (01) send (s)
5.3 Rainbow Ring interaction
The following are the commands used to control your Rainbow ring. Included are the parameters needed and the terminal command to execute each command.
//Term command
#set_led_rgb(LED, INT, INT, INT); //b The first parameter is the LED number from 0-11, INT = intensity 0-64
#set_led_unicolor(LED, RGB, Int); //u RGB = 0, 1, OR 2.
#set_all_rgb(R, G, B); //r int = intensity i.e.:RED 00, GREEN 25, BLUE 34: set_all_rgb(00, 25, 34);
#set_all_unicolor(RGB, Int); //a
#rotate(color, dir); //o Color, direction, color is set from 0-7 and rotation from 0-2
#clearCommand(); //- No parameters needed
#random_leds (); //x indicate how many LEDs to light and the delay between each
#fader (); //f how many times to repeat
#fader_hue (); //h how many times to repeat
#sequence(); //S how many times to repeat *NOTE: CAPITAL S
#color_wave (0) ; //w amount to increase ,delay
Each terminal command should be preceeded by a "c" and ended with an "s". These commands are case sensitve.
EXAMPLE:co029901s
This will send the command (c) rotate(o) the color Blue (02) times (99) clockwise (01) send (s)





Logged

