inserting macros instead of hard coded board names
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
# screen wipe activity
|
||||
|
||||
Clear the screen by pressing buttons on the BBC micro:bit.
|
||||
Clear the screen by pressing buttons on the @boardname@.
|
||||
|
||||
### ~avatar avatar
|
||||
|
||||
This activity will teach how to clear the screen by pressing button ``A`` on the BBC micro:bit.
|
||||
This activity will teach how to clear the screen by pressing button ``A`` on the @boardname@.
|
||||
|
||||
### ~
|
||||
|
||||
@ -35,7 +35,7 @@ input.onButtonPressed(Button.A, () => {
|
||||
}) // ***
|
||||
```
|
||||
|
||||
Run the script in the simulator or on the BBC micro:bit to see how this works!
|
||||
Run the script in the simulator or on the @boardname@ to see how this works!
|
||||
|
||||
### ~avatar boothing
|
||||
|
||||
|
@ -4,7 +4,7 @@ clear the screen by pressing the "A" button after an animation has been played.
|
||||
|
||||
This is the answer key for the [screen wipe quiz](/lessons/screen-wipe/quiz).
|
||||
|
||||
## 1. What does the function "clear screen" do on the BBC micro:bit?
|
||||
## 1. What does the function "clear screen" do on the @boardname@?
|
||||
|
||||
This function turns off all the LED lights on the LED screen.
|
||||
|
||||
@ -24,7 +24,7 @@ basic.showAnimation(`
|
||||
`, 400)
|
||||
```
|
||||
|
||||
## 3. Write the condition that will detect when the BBC micro:bit is shaken.
|
||||
## 3. Write the condition that will detect when the @boardname@ is shaken.
|
||||
|
||||
<br/>
|
||||
|
||||
@ -33,7 +33,7 @@ input.onGesture(Gesture.Shake, () => {
|
||||
})
|
||||
```
|
||||
|
||||
## 4. Write the code that will clear an animation from the screen after shaking the BBC micro:bit.
|
||||
## 4. Write the code that will clear an animation from the screen after shaking the @boardname@.
|
||||
|
||||
<br/>
|
||||
|
||||
|
@ -10,7 +10,7 @@ Use this activity document to guide your work in the [screen wipe tutorial](/les
|
||||
|
||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||
|
||||
## 1. What does the function "clear screen" do on the BBC micro:bit?
|
||||
## 1. What does the function "clear screen" do on the @boardname@?
|
||||
|
||||
<br/>
|
||||
|
||||
@ -20,13 +20,13 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu
|
||||
|
||||
<br/>
|
||||
|
||||
## 3. How can the BBC micro:bit detect when it is shaken?
|
||||
## 3. How can the @boardname@ detect when it is shaken?
|
||||
|
||||
<br/>
|
||||
|
||||
<br/>
|
||||
|
||||
## 4. Write the code that will clear an animation from the screen after shaking the BBC micro:bit.
|
||||
## 4. Write the code that will clear an animation from the screen after shaking the @boardname@.
|
||||
|
||||
<br/>
|
||||
|
||||
|
Reference in New Issue
Block a user