pxt-calliope/olddocs/lessons/blink/quiz-answers.md

50 lines
1.2 KiB
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# blink blocks quiz answers
2016-04-02 01:22:47 +02:00
Learn how to create a blinking LED script.
2016-03-26 00:47:20 +01:00
2016-04-13 17:27:45 +02:00
This is the answer key for the [blink quiz](/lessons/blink/quiz).
2016-03-26 00:47:20 +01:00
## 1. Describe what `plot` does?
Answers will vary. In general, plot refers to the code that turns on a specific LED. We specify the LED using x, y coordinates.
## 2. Draw which LED is ON after running this code
2016-03-29 20:57:50 +02:00
```blocks
led.plot(2, 2)
```
2016-03-26 00:47:20 +01:00
![](/static/mb/lessons/blink-0.png)
By default, the position of an LED on *Blink Tutorial* is set to the centre of the screen. This code turns on the centre LED
## 3. Draw which LED is ON after running this code
2016-03-29 20:57:50 +02:00
```blocks
led.plot(0, 0)
```
2016-03-26 00:47:20 +01:00
![](/static/mb/lessons/blink-1.png)
This code turns on specific LED. Plot turns on the specified LED on the LED screen. We specify the LED using x, y coordinates.
* ``x`` - the x coordinate or horizontal position (0)
* ``y`` - the y coordinate or vertical position (0)
## 4. Draw which LED is ON after running this code
2016-03-29 20:57:50 +02:00
```blocks
led.plot(4, 4)
```
2016-03-26 00:47:20 +01:00
![](/static/mb/lessons/blink-2.png)
This code turns on specific LED. Plot turns on the specified LED on the LED screen. We specify the LED using ``x``, ``y`` coordinates.
* ``x`` - the x coordinate or horizontal position (4)
* ``y`` - the y coordinate or vertical position (4)