pxt-calliope/docs/reference/led/stop-animation.md
2016-07-08 16:34:56 -07:00

331 B

Stop Animation

Stop the animation that is playing and any animations that are waiting to play.

led.stopAnimation()

Example

This program...

basic.showString("STOP ME! STOP ME! PLEASE, WON'T SOMEBODY STOP ME?");
input.onButtonPressed(Button.B, () => {
    led.stopAnimation();
});
'```
### See Also