2016-03-26 00:47:20 +01:00
|
|
|
# night light quiz
|
|
|
|
|
2016-11-01 18:42:42 +01:00
|
|
|
change the brightness of the @boardname@.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
## Name
|
|
|
|
|
|
|
|
## Directions
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
Use this activity document to guide your work in the [night light tutorial](/lessons/night-light/activity)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
|
|
|
|
2018-11-10 00:36:46 +01:00
|
|
|
## 1. Describe what ``||led:set brightness||`` does ?
|
2016-03-26 00:47:20 +01:00
|
|
|
|
2016-11-01 18:42:42 +01:00
|
|
|
## 2. If the picture below is the @boardname@, write the code that sets all the LEDs to full brightness and turns on all the LEDs
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
![](/static/mb/lessons/night-light-0.png)
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2016-11-01 18:42:42 +01:00
|
|
|
## 3. If the picture below is the @boardname@, write the code that sets the screen brightness to 50% (128) and turns on all the LEDs.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
![](/static/mb/lessons/night-light-1.png)
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
2016-11-01 18:42:42 +01:00
|
|
|
## 4. If the picture below is the @boardname@, write the code turns off all the LEDs.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
![](/static/mb/lessons/night-light-2.png)
|
|
|
|
|