Skip to content

LED Animations

ScottD edited this page Feb 21, 2017 · 2 revisions

The Animationclass constructs objects that represent all the LEDs attached to the physical Jewelbot. There are 4 LEDs total that are connected to the Jewelbot.

See Also:

COMPONENT INTIALIZATION

Animation animation;
//naming the variable type and then the name of variable.

PARAMETERS

Property Type Value/Description
ColorLabel char Preset RGB values. RED, GREEN, BLUE, YELLOW, MAGENTA, CYAN, WHITE

API

  • .rainbows()

    This function has your Jewelbot flash a rainbow color animation.

    Animation animation;
    animation.rainbows();
  • .jewelbots_logo()

    This function has your Jewelbot showing the colors of the Jewelbot logo on all 4 of the LEDs.

    Animation animation;
    animation.jewelbots_logo();
  • .breathe_single_color(ColorLabel color)

    This function has your Jewelbot breathe a single color on all 4 of the LED.

    Animation animation;
    animation.breathe_single_color(GREEN);
Clone this wiki locally