Examples now set to same radio group
This commit is contained in:
parent
ed5263f248
commit
6ae39f192b
@ -19,6 +19,7 @@ other micro:bits. This kind of program might be useful in a model car
|
|||||||
or model rocket.
|
or model rocket.
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
|
radio.setGroup(99)
|
||||||
input.onButtonPressed(Button.A, () => {
|
input.onButtonPressed(Button.A, () => {
|
||||||
radio.sendValue("acc",input.acceleration(Dimension.X))
|
radio.sendValue("acc",input.acceleration(Dimension.X))
|
||||||
})
|
})
|
||||||
@ -28,6 +29,7 @@ This program receives the string and number sent by the last program.
|
|||||||
Then it shows them on the LED screen.
|
Then it shows them on the LED screen.
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
|
radio.setGroup(99)
|
||||||
radio.onDataReceived(() => {
|
radio.onDataReceived(() => {
|
||||||
basic.showString(radio.receiveString());
|
basic.showString(radio.receiveString());
|
||||||
basic.showNumber(radio.receiveNumber());
|
basic.showNumber(radio.receiveNumber());
|
||||||
|
Loading…
Reference in New Issue
Block a user