Initial target repo setup to move to master (v3.10)
This commit is contained in:
		@@ -7,13 +7,9 @@
 | 
			
		||||
  "radio.Packet.signal": "The received signal strength indicator (RSSI) of the packet.",
 | 
			
		||||
  "radio.Packet.time": "The system time of the sender of the packet at the time the packet was sent.",
 | 
			
		||||
  "radio.onDataPacketReceived": "Registers code to run when the radio receives a packet. Also takes the\nreceived packet from the radio queue.",
 | 
			
		||||
  "radio.onDataReceived": "Registers code to run when a packet is received over radio.",
 | 
			
		||||
  "radio.receiveNumber": "Reads the next packet from the radio queue and returns the packet's number\npayload or 0 if the packet did not contain a number.",
 | 
			
		||||
  "radio.receiveString": "Reads the next packet from the radio queue and returns the packet's string\npayload or the empty string if the packet did not contain a string.",
 | 
			
		||||
  "radio.receivedBuffer": "Returns the buffer payload from the last packet taken from the radio queue\n(via ``receiveNumber``, ``receiveString``, etc) or the empty string if that\npacket did not contain a string.",
 | 
			
		||||
  "radio.receivedNumber": "Returns the number payload from the last packet taken from the radio queue\n(via ``receiveNumber``, ``receiveString``, etc) or 0 if that packet did not\ncontain a number.",
 | 
			
		||||
  "radio.receivedSerial": "Returns the serial number of the sender micro:bit from the last packet taken\nfrom the radio queue (via ``receiveNumber``, ``receiveString``, etc) or 0 if\nthat packet did not send a serial number.",
 | 
			
		||||
  "radio.receivedSignalStrength": "Gets the received signal strength indicator (RSSI) from the last packet taken\nfrom the radio queue (via ``receiveNumber``, ``receiveString``, etc). Not supported in simulator.\nnamespace=radio",
 | 
			
		||||
  "radio.receivedString": "Returns the string payload from the last packet taken from the radio queue\n(via ``receiveNumber``, ``receiveString``, etc) or the empty string if that\npacket did not contain a string.",
 | 
			
		||||
  "radio.receivedTime": "Returns the system time of the sender micro:bit at the moment when it sent the\nlast packet taken from the radio queue (via ``receiveNumber``,\n``receiveString``, etc).",
 | 
			
		||||
  "radio.sendBuffer": "Broadcasts a buffer (up to 19 bytes long) along with the device serial number\nand running time to any connected micro:bit in the group.",
 | 
			
		||||
@@ -28,6 +24,5 @@
 | 
			
		||||
  "radio.setTransmitPower|param|power": "a value in the range 0..7, where 0 is the lowest power and 7 is the highest. eg: 7",
 | 
			
		||||
  "radio.setTransmitSerialNumber": "Set the radio to transmit the serial number in each message.",
 | 
			
		||||
  "radio.setTransmitSerialNumber|param|transmit": "value indicating if the serial number is transmitted, eg: true",
 | 
			
		||||
  "radio.writeReceivedPacketToSerial": "Writes the last received packet to serial as JSON. This should be called\nwithin an ``onDataPacketReceived`` callback.",
 | 
			
		||||
  "radio.writeValueToSerial": "Reads the next packet from the radio queue and and writes it to serial\nas JSON."
 | 
			
		||||
  "radio.writeReceivedPacketToSerial": "Writes the last received packet to serial as JSON. This should be called\nwithin an ``onDataPacketReceived`` callback."
 | 
			
		||||
}
 | 
			
		||||
@@ -1,9 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "radio.onDataPacketReceived|block": "on radio received",
 | 
			
		||||
  "radio.onDataReceived|block": "radio on data received",
 | 
			
		||||
  "radio.receiveNumber|block": "radio receive number",
 | 
			
		||||
  "radio.receiveString|block": "radio receive string",
 | 
			
		||||
  "radio.receivedSignalStrength|block": "radio received signal strength",
 | 
			
		||||
  "radio.sendNumber|block": "radio send number %value",
 | 
			
		||||
  "radio.sendString|block": "radio send string %msg",
 | 
			
		||||
  "radio.sendValue|block": "radio send|value %name|= %value",
 | 
			
		||||
@@ -11,7 +7,6 @@
 | 
			
		||||
  "radio.setTransmitPower|block": "radio set transmit power %power",
 | 
			
		||||
  "radio.setTransmitSerialNumber|block": "radio set transmit serial number %transmit",
 | 
			
		||||
  "radio.writeReceivedPacketToSerial|block": "radio write received packet to serial",
 | 
			
		||||
  "radio.writeValueToSerial|block": "radio write value to serial",
 | 
			
		||||
  "radio|block": "radio",
 | 
			
		||||
  "{id:category}Radio": "Radio"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										18
									
								
								libs/radio/shims.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								libs/radio/shims.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -11,7 +11,7 @@ declare namespace radio {
 | 
			
		||||
    //% help=radio/send-number
 | 
			
		||||
    //% weight=60
 | 
			
		||||
    //% blockId=radio_datagram_send block="radio send number %value" blockGap=8 shim=radio::sendNumber
 | 
			
		||||
    function sendNumber(value: number): void;
 | 
			
		||||
    function sendNumber(value: int32): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Broadcasts a name / value pair along with the device serial number
 | 
			
		||||
@@ -22,7 +22,7 @@ declare namespace radio {
 | 
			
		||||
    //% help=radio/send-value
 | 
			
		||||
    //% weight=59
 | 
			
		||||
    //% blockId=radio_datagram_send_value block="radio send|value %name|= %value" blockGap=8 shim=radio::sendValue
 | 
			
		||||
    function sendValue(name: string, value: number): void;
 | 
			
		||||
    function sendValue(name: string, value: int32): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Broadcasts a string along with the device serial number
 | 
			
		||||
@@ -70,7 +70,7 @@ declare namespace radio {
 | 
			
		||||
    //% weight=46
 | 
			
		||||
    //% blockId=radio_datagram_receive block="radio receive number" blockGap=8
 | 
			
		||||
    //% deprecated=true shim=radio::receiveNumber
 | 
			
		||||
    function receiveNumber(): number;
 | 
			
		||||
    function receiveNumber(): int32;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Registers code to run when a packet is received over radio.
 | 
			
		||||
@@ -100,7 +100,7 @@ declare namespace radio {
 | 
			
		||||
    //% weight=40
 | 
			
		||||
    //% blockId=radio_datagram_rssi block="radio received signal strength"
 | 
			
		||||
    //% deprecated=true shim=radio::receivedSignalStrength
 | 
			
		||||
    function receivedSignalStrength(): number;
 | 
			
		||||
    function receivedSignalStrength(): int32;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Sets the group id for radio communications. A micro:bit can only listen to one group ID at any time.
 | 
			
		||||
@@ -110,7 +110,7 @@ declare namespace radio {
 | 
			
		||||
    //% weight=10 blockGap=8
 | 
			
		||||
    //% blockId=radio_set_group block="radio set group %ID"
 | 
			
		||||
    //% id.min=0 id.max=255 shim=radio::setGroup
 | 
			
		||||
    function setGroup(id: number): void;
 | 
			
		||||
    function setGroup(id: int32): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Change the output power level of the transmitter to the given value.
 | 
			
		||||
@@ -121,7 +121,7 @@ declare namespace radio {
 | 
			
		||||
    //% blockId=radio_set_transmit_power block="radio set transmit power %power"
 | 
			
		||||
    //% power.min=0 power.max=7
 | 
			
		||||
    //% advanced=true shim=radio::setTransmitPower
 | 
			
		||||
    function setTransmitPower(power: number): void;
 | 
			
		||||
    function setTransmitPower(power: int32): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Set the radio to transmit the serial number in each message.
 | 
			
		||||
@@ -139,7 +139,7 @@ declare namespace radio {
 | 
			
		||||
     * contain a number.
 | 
			
		||||
     */
 | 
			
		||||
    //% help=radio/received-number shim=radio::receivedNumber
 | 
			
		||||
    function receivedNumber(): number;
 | 
			
		||||
    function receivedNumber(): int32;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Returns the serial number of the sender micro:bit from the last packet taken
 | 
			
		||||
@@ -147,7 +147,7 @@ declare namespace radio {
 | 
			
		||||
     * that packet did not send a serial number.
 | 
			
		||||
     */
 | 
			
		||||
    //% help=radio/received-serial shim=radio::receivedSerial
 | 
			
		||||
    function receivedSerial(): number;
 | 
			
		||||
    function receivedSerial(): uint32;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Returns the string payload from the last packet taken from the radio queue
 | 
			
		||||
@@ -171,7 +171,7 @@ declare namespace radio {
 | 
			
		||||
     * ``receiveString``, etc).
 | 
			
		||||
     */
 | 
			
		||||
    //% help=radio/received-time shim=radio::receivedTime
 | 
			
		||||
    function receivedTime(): number;
 | 
			
		||||
    function receivedTime(): uint32;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Auto-generated. Do not edit. Really.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user