Fix radio reference snippets (#1185)
This commit is contained in:
parent
36eafa419d
commit
3b85710bd7
@ -6,9 +6,9 @@ Communicate data using radio packets
|
||||
radio.sendNumber(0);
|
||||
radio.sendValue("name", 0);
|
||||
radio.sendString("");
|
||||
radio.onDataPacketReceived(({ receivedNumber }) => {
|
||||
|
||||
});
|
||||
radio.onReceivedNumber(function (receivedNumber) { });
|
||||
radio.onReceivedValue(function (name, value) { });
|
||||
radio.onReceivedString(function (receivedString) { });
|
||||
radio.setGroup(0);
|
||||
radio.setTransmitPower(7);
|
||||
radio.setTransmitSerialNumber(false);
|
||||
@ -26,7 +26,9 @@ radio
|
||||
[sendValue](/reference/radio/send-value),
|
||||
[sendString](/reference/radio/send-string),
|
||||
[sendBuffer](/reference/radio/send-buffer),
|
||||
[onDataPacketReceived](/reference/radio/on-data-packet-received),
|
||||
[onReceivedNumber](/reference/radio/on-received-number),
|
||||
[onReceivedValue](/reference/radio/on-received-value),
|
||||
[onReceivedString](/reference/radio/on-received-string),
|
||||
[setGroup](/reference/radio/set-group),
|
||||
[setTransmitPower](/reference/radio/set-transmit-power),
|
||||
[setTransmitSerialNumber](/reference/radio/set-transmit-serial-number),
|
||||
|
@ -393,6 +393,7 @@
|
||||
"music.setTempo": "Sets the tempo to the specified amount",
|
||||
"music.setTempo|param|bpm": "The new tempo in beats per minute, eg: 120",
|
||||
"music.tempo": "Returns the tempo in beats per minute. Tempo is the speed (bpm = beats per minute) at which notes play. The larger the tempo value, the faster the notes will play.",
|
||||
"parseFloat": "Convert a string to a number.",
|
||||
"parseInt": "Convert a string to an integer.",
|
||||
"pins": "Control currents in Pins for analog/digital signals, servos, i2c, ...",
|
||||
"pins.analogPitch": "Emits a Pulse-width modulation (PWM) signal to the current pitch pin. Use `analog set pitch pin` to define the pitch pin.",
|
||||
|
@ -310,6 +310,7 @@
|
||||
"music.setTempo|block": "set tempo to (bpm)|%value",
|
||||
"music.tempo|block": "tempo (bpm)",
|
||||
"music|block": "music",
|
||||
"parseFloat|block": "parse to number %text",
|
||||
"parseInt|block": "parse to integer %text",
|
||||
"pins.analogPitch|block": "analog pitch %frequency|for (ms) %ms",
|
||||
"pins.analogReadPin|block": "analog read|pin %name",
|
||||
|
Loading…
Reference in New Issue
Block a user