radio set group
Picks a channel (0 to 255). Only micro:bits in the same group hear each other. Radio.
radio.setGroup(1)
micro:bit and the computer · Find each block in the MakeCode toolbox (the category is at the end of each line).
Picks a channel (0 to 255). Only micro:bits in the same group hear each other. Radio.
radio.setGroup(1)
Runs each time a word arrives; receivedString holds it. Radio.
radio.onReceivedString(function (receivedString) {
blocks
})
Sends a word to every other micro:bit in the group. Radio.
radio.sendString("hi")
Sends a name and a number by radio, such as bin and 1. Radio.
radio.sendValue("bin", 1)
Runs each time a name and number arrive by radio. Radio.
radio.onReceivedValue(function (name, value) {
blocks
})