pxt-calliope/docs/reference/radio.md
Sam El-Husseini e3975e65e5 pxt-microbit Accessibility PR (#529)
* Accessibility changes
2017-09-07 13:42:08 -07:00

773 B

Radio

Communicate data using radio packets

radio.sendNumber(0);
radio.sendValue("name", 0);
radio.sendString("");
radio.onDataPacketReceived(() => {

});
radio.setGroup(0);
radio.setTransmitPower(7);
radio.setTransmitSerialNumber(false);
radio.writeReceivedPacketToSerial();
radio

See Also

sendNumber, sendValue, sendString, onDataPacketReceived, setGroup, setTransmitPower, setTransmitSerialNumber, writeReceivedPacketToSerial