pxt-calliope/docs/reference/led/stop-animation.md

23 lines
331 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# Stop Animation
Stop the animation that is playing and any animations that are waiting to
play.
2016-03-26 00:47:20 +01:00
```sig
led.stopAnimation()
```
### Example
This program...
```blocks
basic.showString("STOP ME! STOP ME! PLEASE, WON'T SOMEBODY STOP ME?");
input.onButtonPressed(Button.B, () => {
led.stopAnimation();
});
'```
### See Also