16 lines
415 B
TypeScript
Raw Normal View History

2016-04-05 16:52:50 -07:00
/**
* Communicate data using radio packets
*/
2016-03-10 14:01:04 -08:00
//% color=270 weight=34
namespace radio {
/**
* Broadcasts a number over radio to any connected micro:bit in the group.
*/
2016-03-21 22:13:39 -07:00
//% help=radio/send-number
2016-03-10 14:01:04 -08:00
//% weight=60
//% blockId=radio_datagram_send block="send number %MESSAGE" blockGap=8
export function sendNumber(value: number) : void {
sendNumbers(value, 0, 0, 0);
}
}