inserting macros instead of hard coded board names

This commit is contained in:
Peli de Halleux
2016-11-01 10:42:42 -07:00
parent 6799721c9b
commit d76d92e041
132 changed files with 271 additions and 271 deletions

View File

@ -12,7 +12,7 @@ This function sets the brightness of the LED screen.
![](/static/mb/lessons/night-light-0.png)
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.
If the rectangle above represents the @boardname@, write the code to set all the LEDs to full brightness and to turn on all the LEDs.
<br />
@ -31,7 +31,7 @@ basic.showLeds(`
![](/static/mb/lessons/night-light-1.png)
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.
If the rectangle above represents the @boardname@, write the code to set the screen brightness to 50% (128) and turns on all the LEDs.
<br/>
@ -50,7 +50,7 @@ basic.showLeds(`
![](/static/mb/lessons/night-light-2.png)
If the rectangle above represents the BBC micro:bit, write the code to turn off all the LEDs.
If the rectangle above represents the @boardname@, write the code to turn off all the LEDs.
```blocks
led.setBrightness(0)

View File

@ -1,6 +1,6 @@
# night light quiz
change the brightness of the BBC micro:bit.
change the brightness of the @boardname@.
## Name
@ -12,19 +12,19 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu
## 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
## 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
![](/static/mb/lessons/night-light-0.png)
<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.
## 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.
![](/static/mb/lessons/night-light-1.png)
<br/>
## 4. If the picture below is the BBC micro:bit, write the code turns off all the LEDs.
## 4. If the picture below is the @boardname@, write the code turns off all the LEDs.
![](/static/mb/lessons/night-light-2.png)