pxt-calliope/docs/lessons/smiley/activity.md

38 lines
686 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# smiley blocks activity
Learn to design a blinking image.
## ~avatar avatar
2016-03-26 00:47:20 +01:00
2016-05-27 00:24:10 +02:00
2016-03-26 00:47:20 +01:00
Welcome! This tutorial will help you make a smiley face blink. Let's get started!
## ~
2016-03-26 00:47:20 +01:00
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
2016-03-31 00:11:05 +02:00
basic.showLeds(`
2016-03-26 00:47:20 +01:00
. # . # .
. # . # .
. . . . .
# . . . #
. # # # .
`)
2016-03-31 00:11:05 +02:00
basic.showLeds(`
2016-03-26 00:47:20 +01:00
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
`)
```
## ~avatar boothing
2016-03-26 00:47:20 +01:00
2016-04-13 17:27:45 +02:00
Excellent, you're ready to continue with the [challenges](/lessons/smiley/challenges)!
2016-03-26 00:47:20 +01:00
## ~
2016-03-26 00:47:20 +01:00