rename micro:bit to @boardname@
This commit is contained in:
		| @@ -1,10 +1,10 @@ | ||||
| # compass activity | ||||
|  | ||||
| Display the direction that the micro:bit is facing using the compass  | ||||
| Display the direction that the @boardname@ is facing using the compass  | ||||
|  | ||||
| ### ~avatar avatar | ||||
|  | ||||
| Welcome! This guided tutorial will show you how to program a script that displays the direction the micro:bit is pointing. Let's get started! | ||||
| Welcome! This guided tutorial will show you how to program a script that displays the direction the @boardname@ is pointing. Let's get started! | ||||
|  | ||||
| ### ~ | ||||
|  | ||||
| @@ -17,7 +17,7 @@ basic.forever(() => { | ||||
| }) | ||||
| ``` | ||||
|  | ||||
| Store the reading of the micro:bit in a variable called `degrees`. | ||||
| Store the reading of the @boardname@ in a variable called `degrees`. | ||||
|  | ||||
| ```blocks | ||||
| basic.forever(() => { | ||||
| @@ -25,7 +25,7 @@ basic.forever(() => { | ||||
| }) | ||||
| ``` | ||||
|  | ||||
| If `degrees` is less than `45`, then the compass heading is mostly pointing toward North. Display `N` on the micro:bit. | ||||
| If `degrees` is less than `45`, then the compass heading is mostly pointing toward North. Display `N` on the @boardname@. | ||||
|  | ||||
| ```blocks | ||||
| basic.forever(() => { | ||||
| @@ -36,7 +36,7 @@ basic.forever(() => { | ||||
| }); | ||||
| ``` | ||||
|  | ||||
| If `degrees` is less than 135, the micro:bit is mostly pointing East. Display `E` on the micro:bit. | ||||
| If `degrees` is less than 135, the @boardname@ is mostly pointing East. Display `E` on the @boardname@. | ||||
|  | ||||
|  | ||||
| ```blocks | ||||
| @@ -51,7 +51,7 @@ basic.forever(() => { | ||||
| }); | ||||
| ``` | ||||
|  | ||||
| If `degrees` is less than 225, the micro:bit is mostly pointing South. Display `S` on the micro:bit. | ||||
| If `degrees` is less than 225, the @boardname@ is mostly pointing South. Display `S` on the @boardname@. | ||||
|  | ||||
|  | ||||
| ```blocks | ||||
| @@ -70,7 +70,7 @@ basic.forever(() => { | ||||
| ``` | ||||
|  | ||||
|  | ||||
| If none of these conditions returned true, then the micro:bit must be pointing West. Display `W` on the micro:bit. | ||||
| If none of these conditions returned true, then the @boardname@ must be pointing West. Display `W` on the @boardname@. | ||||
|  | ||||
| ```blocks | ||||
| basic.forever(() => { | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| # compass challenges | ||||
|  | ||||
| Display the direction that the micro:bit is facing using the compass  | ||||
| Display the direction that the @boardname@ is facing using the compass  | ||||
|  | ||||
| ## Before we get started | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu | ||||
|  | ||||
| ## 1. What is the purpose of the 'compass heading' block? | ||||
|  | ||||
| Gets the compass heading of the micro:bit in degrees | ||||
| Gets the compass heading of the @boardname@ in degrees | ||||
|  | ||||
|  | ||||
| ## 2. Write the code that stores the compass heading into a local variable called 'degrees'.  | ||||
| @@ -22,7 +22,7 @@ Gets the compass heading of the micro:bit in degrees | ||||
| let degrees = input.compassHeading() | ||||
| ``` | ||||
|  | ||||
| ## 3. Write the 'If statement' that will check if the device is mostly pointing North. Display 'N' on the micro:bit  | ||||
| ## 3. Write the 'If statement' that will check if the device is mostly pointing North. Display 'N' on the @boardname@  | ||||
|  | ||||
|  | ||||
| ```blocks | ||||
| @@ -32,7 +32,7 @@ if (degrees < 45) { | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ## 4. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the micro:bit  | ||||
| ## 4. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the @boardname@  | ||||
|  | ||||
|  | ||||
| ```blocks | ||||
| @@ -42,7 +42,7 @@ if (degrees < 135) { | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ## 5. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the micro:bit  | ||||
| ## 5. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the @boardname@  | ||||
|  | ||||
|  | ||||
| ```blocks | ||||
|   | ||||
| @@ -15,12 +15,12 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu | ||||
| ## 2. Write the code that stores the compass heading into a local variable called 'degrees'.  | ||||
|  | ||||
|  | ||||
| ## 3. Write the 'If statement' that will check if the device is mostly pointing North. Display 'N' on the micro:bit  | ||||
| ## 3. Write the 'If statement' that will check if the device is mostly pointing North. Display 'N' on the @boardname@  | ||||
|  | ||||
|  | ||||
| ## 4. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the micro:bit  | ||||
| ## 4. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the @boardname@  | ||||
|  | ||||
|  | ||||
| ## 5. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the micro:bit  | ||||
| ## 5. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the @boardname@  | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user