Migrate docs from the other repo
This commit is contained in:
37
docs/lessons/smiley/activity.md
Normal file
37
docs/lessons/smiley/activity.md
Normal file
@ -0,0 +1,37 @@
|
||||
# smiley blocks activity
|
||||
|
||||
Learn to design a blinking image.
|
||||
|
||||
### ~avatar avatar
|
||||
|
||||
### @video td/videos/smiley-0
|
||||
|
||||
Welcome! This tutorial will help you make a smiley face blink. Let's get started!
|
||||
|
||||
### ~
|
||||
|
||||
Create an animation with an image displaying a smiley face and the next image with no LEDs lit up. This will make it look like the smiley face is blinking as the display switches between images.
|
||||
|
||||
```blocks
|
||||
basic.showAnimation(`
|
||||
. # . # .
|
||||
. # . # .
|
||||
. . . . .
|
||||
# . . . #
|
||||
. # # # .
|
||||
`)
|
||||
basic.showAnimation(`
|
||||
. . . . .
|
||||
. . . . .
|
||||
. . . . .
|
||||
. . . . .
|
||||
. . . . .
|
||||
`)
|
||||
```
|
||||
|
||||
### ~avatar boothing
|
||||
|
||||
Excellent, you're ready to continue with the [challenges](/microbit/lessons/smiley/challenges)!
|
||||
|
||||
### ~
|
||||
|
Reference in New Issue
Block a user