31 lines
678 B
Markdown
31 lines
678 B
Markdown
|
# smiley activity
|
||
|
|
||
|
Learn to design a blinking image. #docs #microbit
|
||
|
|
||
|
### ~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 a frame displaying a smiley face and the next frame with no LEDs lit up. This will make it look like the smiley face is blinking as the display switches between frames.
|
||
|
|
||
|
```
|
||
|
basic.showAnimation(`
|
||
|
. # . # . . . . . .
|
||
|
. # . # . . . . . .
|
||
|
. . . . . . . . . .
|
||
|
# . . . # . . . . .
|
||
|
. # # # . . . . . .
|
||
|
`, 400) // ***
|
||
|
```
|
||
|
|
||
|
### ~avatar boothing
|
||
|
|
||
|
Excellent, you're ready to continue with the [challenges](/microbit/lessons/smiley/challenges)!
|
||
|
|
||
|
### ~
|
||
|
|