file management quizzes
This commit is contained in:
@ -1,46 +0,0 @@
|
||||
# night light quiz answers
|
||||
|
||||
Answers to the night light quiz. #LED #image #brightness #fade #docs
|
||||
|
||||
This is the answer key for the [night light quiz](/microbit/lessons/night-light/quiz).
|
||||
|
||||
## 1. Define the function "set brightness"
|
||||
|
||||
This function sets the brightness of the LED screen.
|
||||
|
||||
## 2. Consider the following image
|
||||
|
||||

|
||||
|
||||
If the rectangle above represents the BBC micro:bit, write the code to set all the LEDs to full brightness and to turn on all the LEDs.
|
||||
|
||||
<br />
|
||||
|
||||
```
|
||||
led.setBrightness(255)
|
||||
led.plotAll()
|
||||
```
|
||||
|
||||
## 3. Consider the following image
|
||||
|
||||

|
||||
|
||||
If the rectangle above represents the BBC micro:bit, write the code to set the screen brightness to 50% (128) and turns on all the LEDs.
|
||||
|
||||
<br/>
|
||||
|
||||
```
|
||||
led.setBrightness(128)
|
||||
led.plotAll()
|
||||
```
|
||||
|
||||
## 4. Consider the following image
|
||||
|
||||

|
||||
|
||||
If the rectangle above represents the BBC micro:bit, write the code to turn off all the LEDs.
|
||||
|
||||
```
|
||||
led.setBrightness(0)
|
||||
```
|
||||
|
@ -1,30 +0,0 @@
|
||||
# night light quiz
|
||||
|
||||
change the brightness of the BBC micro:bit #LED #image #brightness #fade #docs
|
||||
|
||||
## Name
|
||||
|
||||
## Directions
|
||||
|
||||
Use this activity document to guide your work in the [night light tutorial](/microbit/lessons/night-light/tutorial)
|
||||
|
||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||
|
||||
## 1. Describe what "led->set brightness" does ?
|
||||
|
||||
## 2. If the picture below is the BBC micro:bit, write the code that sets all the LEDs to full brightness and turns on all the LEDs
|
||||
|
||||

|
||||
|
||||
<br />
|
||||
|
||||
## 3. If the picture below is the BBC micro:bit, write the code that sets the screen brightness to 50% (128) and turns on all the LEDs.
|
||||
|
||||

|
||||
|
||||
<br/>
|
||||
|
||||
## 4. If the picture below is the BBC micro:bit, write the code turns off all the LEDs.
|
||||
|
||||

|
||||
|
Reference in New Issue
Block a user