moving block down category
This commit is contained in:
parent
5884231399
commit
fcfdbcc7e4
@ -56,7 +56,7 @@ namespace radio {
|
|||||||
* @param the numberic value
|
* @param the numberic value
|
||||||
*/
|
*/
|
||||||
//% help=radio/stream-value
|
//% help=radio/stream-value
|
||||||
//% weight=15
|
//% weight=4
|
||||||
//% blockId=radio_datagram_stream_value block="stream|value %name|= %value"
|
//% blockId=radio_datagram_stream_value block="stream|value %name|= %value"
|
||||||
void streamValue(StringData* name, int number) {
|
void streamValue(StringData* name, int number) {
|
||||||
if (radioEnable() != MICROBIT_OK) return;
|
if (radioEnable() != MICROBIT_OK) return;
|
||||||
@ -78,7 +78,7 @@ namespace radio {
|
|||||||
* to the serial stream as JSON
|
* to the serial stream as JSON
|
||||||
*/
|
*/
|
||||||
//% help=radio/read-value-to-serial
|
//% help=radio/read-value-to-serial
|
||||||
//% weight=14
|
//% weight=3
|
||||||
void readValueToSerial() {
|
void readValueToSerial() {
|
||||||
if (radioEnable() != MICROBIT_OK) return;
|
if (radioEnable() != MICROBIT_OK) return;
|
||||||
PacketBuffer p = uBit.radio.datagram.recv();
|
PacketBuffer p = uBit.radio.datagram.recv();
|
||||||
|
4
libs/microbit-radio/shims.d.ts
vendored
4
libs/microbit-radio/shims.d.ts
vendored
@ -20,7 +20,7 @@ declare namespace radio {
|
|||||||
* @param the numberic value
|
* @param the numberic value
|
||||||
*/
|
*/
|
||||||
//% help=radio/stream-value
|
//% help=radio/stream-value
|
||||||
//% weight=15
|
//% weight=4
|
||||||
//% blockId=radio_datagram_stream_value block="stream|value %name|= %value" shim=radio::streamValue
|
//% blockId=radio_datagram_stream_value block="stream|value %name|= %value" shim=radio::streamValue
|
||||||
function streamValue(name: string, number: number): void;
|
function streamValue(name: string, number: number): void;
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ declare namespace radio {
|
|||||||
* to the serial stream as JSON
|
* to the serial stream as JSON
|
||||||
*/
|
*/
|
||||||
//% help=radio/read-value-to-serial
|
//% help=radio/read-value-to-serial
|
||||||
//% weight=14 shim=radio::readValueToSerial
|
//% weight=3 shim=radio::readValueToSerial
|
||||||
function readValueToSerial(): void;
|
function readValueToSerial(): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user