Micro:Bit — radio
Your micro:bit can send messages to and listen for messages from other micro:bits
So far you’ve had your Micro:Bit working on its own. Using the radio function, you can pass messages between two (or more) MicroBits.
When you’re writing code to pass messages you might have different codes on different Micro:Bits. The instructions below will set up your two Micro:bits to send and display a number.
You’ll find radio set group
and radio send number
under Radio
. You’ll need to choose a number for your group
that’s personal to your Micro:bits, otherwise you’ll be sending messages to other people in the room!
Download and flash this code to one of your Micro:Bits and then move onto the next Micro:Bit.
Make sure the second MicroBit is set to the same group
as the first. You’ll on radio received
is also under Radio
. receivedNumber
is stored in the Variables
. Download and flash this code to the second Micro:Bit.
The radio
can send number
and also strings
(words). You could use the micro:bits as simple text messaging devices.
One micro:bit can now control another – remote control cars?