2.1.28, initiation update to PXT v5.28.24 (#54)

This commit is contained in:
Amerlander
2019-12-02 05:58:26 +01:00
committed by Peli de Halleux
parent 38a964516e
commit 5c114a0c57
1261 changed files with 50692 additions and 21604 deletions

View File

@ -1,17 +1,26 @@
# Send Number
# send Number
Broadcast a [number](/reference/types/number) to other @boardname@s connected via ``radio``.
Broadcast a [number](/types/number) to other @boardname@s connected via ``radio``.
```sig
radio.sendNumber(0);
```
### Parameters
## Parameters
* ``value`` - a [number](/reference/types/number) to send.
* **value**: a [number](/types/number) to send.
## ~ hint
### Example: Broadcasting acceleration
Watch this video to see how the radio hardware works on the @boardname@:
https://www.youtube.com/watch?v=Re3H2ISfQE8
## ~
## Examples
### Broadcasting acceleration
This example broadcasts the value of your @boardname@'s ``acceleration``
in the `x` direction (left and right) to other @boardname@s. This kind
@ -27,7 +36,7 @@ input.onButtonPressed(Button.A, () => {
This example broadcasts the level of the light around it.
You can do some interesting things with it if you use it along with the
[on data packet received](/reference/radio/on-data-packet-received) example.
[on received number](/reference/radio/on-received-number) example.
```blocks
radio.setGroup(99)
@ -37,9 +46,9 @@ basic.forever(() => {
})
```
### See also
## See also
[on data packet received](/reference/radio/on-data-packet-received)
[on received number](/reference/radio/on-received-number)
```package
radio