From 4f7dd75fbe28a36fa3286d47ccbd2fbfb8b1c96f Mon Sep 17 00:00:00 2001 From: Ron Hale-Evans Date: Thu, 28 Jul 2016 12:16:18 -0700 Subject: [PATCH] Finished animation API --- docs/reference/led/stop-animation.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/reference/led/stop-animation.md b/docs/reference/led/stop-animation.md index af7d9d4b..238019a0 100644 --- a/docs/reference/led/stop-animation.md +++ b/docs/reference/led/stop-animation.md @@ -9,14 +9,24 @@ led.stopAnimation() ### Example -This program... +This program sets up the ``stop animation`` part of the program, +and then shows a string that you can stop with button ``B``. ```blocks -basic.showString("STOP ME! STOP ME! PLEASE, WON'T SOMEBODY STOP ME?"); input.onButtonPressed(Button.B, () => { led.stopAnimation(); }); -'``` +basic.showString("STOP ME! STOP ME! PLEASE, WON'T SOMEBODY STOP ME?"); +``` + +### ~hint + +It's important to set up ``stop animation`` before showing the +animation, so the ``stop animation`` part of the program will be ready +to go. + +### ~ + ### See Also - +[show animation](/reference/basic/show-animation)