inserting macros instead of hard coded board names
This commit is contained in:
@ -12,7 +12,7 @@ This function sets the brightness of the LED screen.
|
||||
|
||||

|
||||
|
||||
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(`
|
||||
|
||||

|
||||
|
||||
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(`
|
||||
|
||||

|
||||
|
||||
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)
|
||||
|
Reference in New Issue
Block a user