Calliope mini radio
Watch this video to see how the radio hardware works on the Calliope mini:
Run part of a program when the Calliope mini receives a string over radio
.
radio.onReceivedString(function (receivedString) {})
This program continuously sends a cheerful message. It also receives a messages from nearby Calliope minis. It shows these messages on the screen.
radio.setGroup(1)
basic.forever(() => {
radio.sendString("I'm happy");
})
radio.onReceivedString(function (receivedString) {
basic.showString(receivedString)
})
The ||radio:on received string||
event can only be created once, due to the hardware restrictions.
The radio set group might need to be set, synchronized, before the radio events will function.
on received number, received packet, send number, send string, send value, set group
funk