inserting macros instead of hard coded board names
This commit is contained in:
@ -33,7 +33,7 @@ let acceleration = input.acceleration(Dimension.X)
|
||||
let accelerationAbsolute = Math.abs(acceleration)
|
||||
```
|
||||
|
||||
## 4. Write the code to use the acceleration value from question 3 to set the brightness on the BBC micro:bit.
|
||||
## 4. Write the code to use the acceleration value from question 3 to set the brightness on the @boardname@.
|
||||
|
||||
<br/>
|
||||
|
||||
|
@ -22,6 +22,6 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu
|
||||
|
||||
<br/>
|
||||
|
||||
## 4. Write the code to include acceleration value question 3 to set the brightness on the BBC micro:bit.
|
||||
## 4. Write the code to include acceleration value question 3 to set the brightness on the @boardname@.
|
||||
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
# glowing pendulum block tutorial
|
||||
|
||||
The glowing pendulum changes the screen brightness based on the acceleration measured on the BBC micro:bit.
|
||||
The glowing pendulum changes the screen brightness based on the acceleration measured on the @boardname@.
|
||||
|
||||
### Rebuild the game!
|
||||
|
||||
The blocks have been shuffled! Put them back together so that...
|
||||
* all LEDs are turned on
|
||||
* the BBC micro:bit repeats code **forever** that
|
||||
* the @boardname@ repeats code **forever** that
|
||||
* reads the acceleration along the ``y`` axis,
|
||||
* calculate the absolute value of the acceleration
|
||||
* scales down the acceleration value by a factor of `4`
|
||||
|
Reference in New Issue
Block a user