set Frequency Band

Change the transmission and reception band of the radio to the given channel. Default is 7.

radio.setFrequencyBand(50);

Parameters

  • band is a number between 0 and 83. Each step is 1MHz wide, based at 2400MHz.

Simulator

This function only works on the micro:bit, not in browsers.

Example

This program makes the radio use frequency band 50.

radio.setFrequencyBand(50)

See also

received packet, send number, send value, send string

radio