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