pxt-calliope/docs/lessons/smiley/quiz-answers.md

52 lines
942 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# smiley blocks quiz answers
2016-04-13 17:27:45 +02:00
This is the answer key for the [smiley quiz](/lessons/smiley/quiz).
2016-03-26 00:47:20 +01:00
## 1. Describe what `show LEDs` does
A function that will display an image on the LED screen
## 2. Why is there an extra empty frame after the smiley face?
![](/static/mb/lessons/smiley-0.png)
<br/>
2016-11-02 01:44:37 +01:00
The extra empty image with show LED creates a blinking smiley, allowing the @boardname@ to alternate between showing the smiley and the empty screen.
2016-03-26 00:47:20 +01:00
## 3. Draw the image created with this code
2016-03-29 20:57:50 +02:00
```blocks
basic.showLeds(`
. # . # .
. # . # .
. . . . .
# . . . #
. # # # .
`)
```
2016-03-26 00:47:20 +01:00
![](/static/mb/blocks/lessons/smiley-4.png)
## 4. Write the code to make this image
2016-03-29 20:57:50 +02:00
```blocks
basic.showLeds(`
. # . # .
. # . # .
. . . . .
# . . . #
. # # # .
`)
basic.showLeds(`
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
`)
```
2016-03-26 00:47:20 +01:00
![](/static/mb/blocks/lessons/smiley-6.png)