pxt-calliope/libs/microbit-radio/radio.ts

13 lines
367 B
TypeScript
Raw Normal View History

2016-03-10 23:01:04 +01:00
//% color=270 weight=34
namespace radio {
/**
* Broadcasts a number over radio to any connected micro:bit in the group.
*/
2016-03-22 06:13:39 +01:00
//% help=radio/send-number
2016-03-10 23:01:04 +01:00
//% weight=60
//% blockId=radio_datagram_send block="send number %MESSAGE" blockGap=8
export function sendNumber(value: number) : void {
sendNumbers(value, 0, 0, 0);
}
}