inserting macros instead of hard coded board names
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
# 2 player pong quiz answers
|
||||
|
||||
a two-player game of Pong using TWO BBC micro:bits!.
|
||||
a two-player game of Pong using TWO @boardname@s!.
|
||||
|
||||
## Name
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 2 player pong quiz
|
||||
|
||||
a two-player game of Pong using TWO BBC micro:bits!.
|
||||
a two-player game of Pong using TWO @boardname@s!.
|
||||
|
||||
## Name
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# digital pet lesson
|
||||
|
||||
a display of pet images for the BBC micro:bit.
|
||||
a display of pet images for the @boardname@.
|
||||
|
||||
## Topic
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# digital pet quiz answers
|
||||
|
||||
A display of pet images for the BBC micro:bit
|
||||
A display of pet images for the @boardname@
|
||||
|
||||
## Name
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# digital pet quiz
|
||||
|
||||
A display of pet images for the BBC micro:bit
|
||||
A display of pet images for the @boardname@
|
||||
|
||||
## Name
|
||||
|
||||
|
@ -12,7 +12,7 @@ Modulo (or Mod) is the remainder of a division problem.
|
||||
|
||||
## 2. Consider the following code
|
||||
|
||||
If the rectangle below represents the BBC micro:bit, shade in the LEDs that show the value being stored into the **global variable**, `count`. Explain why that particular area is shaded.
|
||||
If the rectangle below represents the @boardname@, shade in the LEDs that show the value being stored into the **global variable**, `count`. Explain why that particular area is shaded.
|
||||
|
||||
```
|
||||
count = 1
|
||||
@ -38,7 +38,7 @@ count = 12
|
||||
count = math.mod(count, 5)
|
||||
```
|
||||
|
||||
If the rectangle below represents the BBC micro:bit, shade in the LEDs that show the value being stored into the **global variable**, `count`. Explain why that particular area is shaded.
|
||||
If the rectangle below represents the @boardname@, shade in the LEDs that show the value being stored into the **global variable**, `count`. Explain why that particular area is shaded.
|
||||
|
||||
<br/>
|
||||
|
||||
|
@ -14,7 +14,7 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu
|
||||
|
||||
## 2. Consider the following directions
|
||||
|
||||
If the rectangle below represents the BBC micro:bit, shade in the LEDs that show the value being stored into the **global variable**, `count`.
|
||||
If the rectangle below represents the @boardname@, shade in the LEDs that show the value being stored into the **global variable**, `count`.
|
||||
|
||||
```
|
||||
count = 1
|
||||
@ -28,7 +28,7 @@ count = 1
|
||||
|
||||
## 3. Consider the following code
|
||||
|
||||
If the rectangle below represents the BBC micro:bit, shade in the LEDs that show the value being stored into the **global variable**, `count`. Explain why that particular area is shaded.
|
||||
If the rectangle below represents the @boardname@, shade in the LEDs that show the value being stored into the **global variable**, `count`. Explain why that particular area is shaded.
|
||||
|
||||
```
|
||||
count = 1
|
||||
@ -50,7 +50,7 @@ count = 12
|
||||
count = math.mod(count, 5)
|
||||
```
|
||||
|
||||
If the rectangle below represents the BBC micro:bit, shade in the LEDs that show the value being stored into the **global variable**, `count`. Explain why that particular area is shaded.
|
||||
If the rectangle below represents the @boardname@, shade in the LEDs that show the value being stored into the **global variable**, `count`. Explain why that particular area is shaded.
|
||||
|
||||

|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# hack your headphones lesson
|
||||
|
||||
display beautiful images on the BBC micro:bit.
|
||||
display beautiful images on the @boardname@.
|
||||
|
||||
## Topic
|
||||
|
||||
@ -16,9 +16,9 @@ Year 7
|
||||
|
||||
## Prior learning/place of lesson in scheme of work
|
||||
|
||||
Learn how to convert your BBC micro:bit into a music player using pins P0 and GND, headphones (or speakers), as well as crocodile clips (or spring clips).
|
||||
Learn how to convert your @boardname@ into a music player using pins P0 and GND, headphones (or speakers), as well as crocodile clips (or spring clips).
|
||||
|
||||
## Objectives
|
||||
|
||||
* learn how to setup the BBC micro:bit with headphones to play music
|
||||
* learn how to setup the @boardname@ with headphones to play music
|
||||
|
||||
|
@ -56,7 +56,7 @@ Learn how to create a guessing game with **global variables** `var str: "this is
|
||||
* learn how to show a string on the LED screen
|
||||
* learn how to create a local variable to store data so that you can use it later in your code
|
||||
* learn how to set and change the value of a local variable
|
||||
* learn how to register an event handler that executes whenever the LED screen is perpendicular to the ground and the BBC micro:bit logo is above the LED screen
|
||||
* learn how to register an event handler that executes whenever the LED screen is perpendicular to the ground and the @boardname@ logo is above the LED screen
|
||||
* learn how to register an event handler that executes whenever the LED screen is facing the floor
|
||||
* learn how to register an event handler that executes whenever the LED screen is facing the ceiling/sky
|
||||
* learn how to return a random number
|
||||
|
@ -181,7 +181,7 @@ while (true) {
|
||||
}
|
||||
```
|
||||
|
||||
## 14. Write the code that displays an "X" on the BBC micro:bit if 'result' is 1. Otherwise, display a "check mark".
|
||||
## 14. Write the code that displays an "X" on the @boardname@ if 'result' is 1. Otherwise, display a "check mark".
|
||||
|
||||
<br />
|
||||
|
||||
|
@ -108,7 +108,7 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu
|
||||
|
||||
<br/>
|
||||
|
||||
## 14. Write the code that displays an "X" on the BBC micro:bit if 'result' is 1. Otherwise, display a "check mark".
|
||||
## 14. Write the code that displays an "X" on the @boardname@ if 'result' is 1. Otherwise, display a "check mark".
|
||||
|
||||
<br />
|
||||
|
||||
|
@ -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/>
|
||||
|
||||
|
@ -38,7 +38,7 @@ Write the code to call the function that doubles the input number. (the function
|
||||
|
||||
## 6. Consider the following picture
|
||||
|
||||
Write the code to show number 20 on the BBC micro:bit. Please add the variable called `doubled` Refer to the finished code on the tutorial.
|
||||
Write the code to show number 20 on the @boardname@. Please add the variable called `doubled` Refer to the finished code on the tutorial.
|
||||
|
||||
<br/>
|
||||
|
||||
|
Reference in New Issue
Block a user