Examples now set to same radio group

This commit is contained in:
Ron Hale-Evans 2016-06-16 15:33:35 -07:00
Родитель ed5263f248
Коммит 6ae39f192b
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -19,6 +19,7 @@ other micro:bits. This kind of program might be useful in a model car
or model rocket.
```blocks
radio.setGroup(99)
input.onButtonPressed(Button.A, () => {
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.
```blocks
radio.setGroup(99)
radio.onDataReceived(() => {
basic.showString(radio.receiveString());
basic.showNumber(radio.receiveNumber());