21 lines
386 B
Markdown
21 lines
386 B
Markdown
# Radio
|
|
|
|
Communicate data using radio packets
|
|
|
|
```cards
|
|
radio.sendNumber(0);
|
|
radio.sendValue("data", 0);
|
|
radio.sendString("");
|
|
radio.onDataReceived(() => {
|
|
|
|
});
|
|
radio.receiveNumber();
|
|
radio.receivedNumberAt(0);
|
|
radio.receiveString();
|
|
radio.receivedSignalStrength();
|
|
radio.setGroup(0);
|
|
radio.setTransmitPower(7);
|
|
radio.writeValueToSerial();
|
|
radio.setTransmitSerialNumber(false);
|
|
```
|