Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion libs/radio/shims.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@
//% color=#E3008C weight=96 icon="\uf012"
declare namespace radio {

/**
* Disables the radio for use as a multipoint sender/receiver.
* Disabling radio will help conserve battery power when it is not in use.
*/
//% help=radio/off shim=radio::off
function off(): void;

/**
* Initialises the radio for use as a multipoint sender/receiver
* Only useful when the radio.off() is used beforehand.
*/
//% help=radio/on shim=radio::on
function on(): void;

/**
* Sends an event over radio to neigboring devices
*/
Expand Down Expand Up @@ -44,7 +58,8 @@ declare namespace radio {
//% help=radio/set-group
//% weight=100
//% blockId=radio_set_group block="radio set group %ID"
//% id.min=0 id.max=255 shim=radio::setGroup
//% id.min=0 id.max=255
//% group="Group" shim=radio::setGroup
function setGroup(id: int32): void;

/**
Expand Down
Loading
Loading