forked from DexterInd/pxt-giggle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,20 +64,24 @@ This is a quick and rewarding project! You can control your Gigglebot by using a | |
|
||
Use a second micro:bit as a remote control for your Gigglebot. Moving the remote hand-held microbit will control the Gigglebot. | ||
On this micro:bit, put the following code: | ||
(note that the group number must be the same between remote and GiggleBot, and each pair must have a unique number) | ||
|
||
```blocks | ||
basic.forever(() => { | ||
remote.remoteControl(1) | ||
remote.setGroup(1) | ||
basic.forever(function () { | ||
remote.remoteControl() | ||
}) | ||
``` | ||
|
||
#### On your gigglebot's microbit #remote-onremotecontrol | ||
#### use the following blocks #remote-remotecontrolaction | ||
|
||
On the gigglebot's micro:bit, put this code: | ||
|
||
(note that the group number must be the same between remote and GiggleBot, and each pair must have a unique number) | ||
```blocks | ||
remote.onRemoteControl(1, () => { | ||
remote.setGroup(1) | ||
remote.onRemoteControl(function () { | ||
remote.remoteControlAction() | ||
}) | ||
``` | ||
|
@@ -101,5 +105,3 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | |
## Code of Conduct | ||
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters