2.1.28, initiation update to PXT v5.28.24 (#54)

This commit is contained in:
Amerlander
2019-12-02 05:58:26 +01:00
committed by Peli de Halleux
parent 38a964516e
commit 5c114a0c57
1261 changed files with 50692 additions and 21604 deletions

View File

@@ -1,4 +1,4 @@
# Show Animation
# show Animation
Show a group of image frames (pictures) one after another on the [LED screen](/device/screen). It pauses the amount of time you tell it after each frame.
@@ -12,12 +12,12 @@ basic.showAnimation(`
`)
```
### Parameters
## Parameters
* `leds` is a [String](/reference/types/string) that shows which LEDs are on and off, in groups one after another.
* `interval` is an optional [Number](/reference/types/number). It means the number of milliseconds to pause after each image frame.
* `leds` is a [string](/types/string) that shows which LEDs are on and off, in groups one after another.
* `interval` is an optional [number](/types/number). It means the number of milliseconds to pause after each image frame.
### Example: Animating a group of image frames
## Example: Animating a group of image frames
In this animation, each row is 15 spaces wide because
there are three frames in the animation, and each frame is
@@ -33,13 +33,13 @@ basic.showAnimation(`
`)
```
### ~hint
## ~hint
If the animation is too fast, make `interval` bigger.
### ~
## ~
### Example: animating frames with a pause
## Example: animating frames with a pause
This example shows six frames on the screen, pausing 500 milliseconds after each frame.
@@ -57,8 +57,8 @@ basic.showAnimation(`
`, 500)
```
### ~hint
## ~hint
Use [forever](/reference/basic/forever) to show an animation over and over.
### ~
## ~