rename micro:bit to @boardname@
This commit is contained in:
		| @@ -12,7 +12,7 @@ basic.forever(() => { | ||||
| }) | ||||
| ``` | ||||
|  | ||||
| Since the micro:bit will be swinging up and down, we need to store the variable called jumps. We will set the variable called jumps to 0 to store the number 0. | ||||
| Since the @boardname@ will be swinging up and down, we need to store the variable called jumps. We will set the variable called jumps to 0 to store the number 0. | ||||
|  | ||||
| ```blocks | ||||
| let jumps = 0 | ||||
| @@ -65,7 +65,7 @@ input.onButtonPressed(Button.A, () => { | ||||
| }) | ||||
| ``` | ||||
|  | ||||
| If you press button A+B together, then reset the jump counter to 0 on the @boardname@. Finally, we will show the show the jump counter on the micro:bit | ||||
| If you press button A+B together, then reset the jump counter to 0 on the @boardname@. Finally, we will show the show the jump counter on the @boardname@ | ||||
|  | ||||
|  | ||||
| ```blocks | ||||
| @@ -94,7 +94,7 @@ input.onButtonPressed(Button.AB, () => { | ||||
|  | ||||
| ``` | ||||
|  | ||||
| We want to setup the radio communication between an additional micro:bit. We first must send number for jumps. The additional micro:bit will receive the number and show number on data received. We are now displaying the current jump count on the second micro:bit | ||||
| We want to setup the radio communication between an additional @boardname@. We first must send number for jumps. The additional @boardname@ will receive the number and show number on data received. We are now displaying the current jump count on the second @boardname@ | ||||
|  | ||||
| ```blocks | ||||
| let jumps = 0 | ||||
| @@ -125,7 +125,7 @@ radio.onDataPacketReceived(({ receivedNumber }) => { | ||||
| }) | ||||
|  | ||||
| ``` | ||||
| We want to stop animation so every time the number of jumps increase by 1 the second micro:bit will not also display smiley from show leds. So we add the code stop animation | ||||
| We want to stop animation so every time the number of jumps increase by 1 the second @boardname@ will not also display smiley from show leds. So we add the code stop animation | ||||
|  | ||||
| ```blocks | ||||
| let jumps = 0 | ||||
| @@ -159,9 +159,9 @@ radio.onDataPacketReceived(({ receivedNumber }) => { | ||||
| ``` | ||||
|  | ||||
|  | ||||
| Connect the first micro:bit to your computer using your USB cable and run the pogo script on it. | ||||
| Connect the second micro:bit to your computer using your USB cable and run the pogo script on it. | ||||
| The first person and second person take turns jumping in the “y” direction while the other player uses the micro:bit to track the results on the micro:bit! | ||||
| Connect the first @boardname@ to your computer using your USB cable and run the pogo script on it. | ||||
| Connect the second @boardname@ to your computer using your USB cable and run the pogo script on it. | ||||
| The first person and second person take turns jumping in the “y” direction while the other player uses the @boardname@ to track the results on the @boardname@! | ||||
|  | ||||
| ```package | ||||
| radio | ||||
|   | ||||
		Reference in New Issue
	
	Block a user