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