2016-03-25 16:47:20 -07:00
|
|
|
# flashing heart quiz
|
|
|
|
|
|
|
|
Learn how to create a blinking LED script with a variable.
|
|
|
|
|
|
|
|
## Name
|
|
|
|
|
|
|
|
## Directions
|
|
|
|
|
2016-04-13 08:27:45 -07:00
|
|
|
Use this activity document to guide your work in the [flashing heart activity](/lessons/flashing-heart/activity).
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
Answer the questions while completing the activity. Pay attention to the dialogues!
|
|
|
|
|
|
|
|
## 1. Describe what pause does?
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 2. Draw the image being displayed using the BBC micro:bit image.
|
|
|
|
|
|
|
|
```
|
|
|
|
basic.showLeds(`
|
|
|
|
. # . # .
|
|
|
|
# # # # #
|
|
|
|
# # # # #
|
|
|
|
. # # # .
|
|
|
|
. . # . .
|
|
|
|
`, 400)
|
|
|
|
```
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 3. Write the code to show LEDs of a broken heart forever.
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|