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

@ -0,0 +1,34 @@
# set Frequency Band
Change the transmission and reception band of the radio to the given channel. Default is 7.
```sig
radio.setFrequencyBand(50);
```
## Parameters
* ``band`` is a [number](/types/number) between ``0`` and ``83``. Each step is 1MHz wide, based at 2400MHz.
## Simulator
This function only works on the @boardname@, not in browsers.
## Example
This program makes the ``radio`` use frequency band 50.
```blocks
radio.setFrequencyBand(50)
```
## See also
[received packet](/reference/radio/received-packet),
[send number](/reference/radio/send-number),
[send value](/reference/radio/send-value),
[send string](/reference/radio/send-string)
```package
radio
```