Science Oxford Logo

Change the messages being sent, by using the buttons


Learn how to edit the message

If you haven't done it yet, use these instructions and set up the new code.


Change the message when you press A

The message that should be sent is stored in a variable, by naming it message. We can change the value of message, and the micro:bit will use the most up to date value.

ADD ALT TEXT

When the program starts, your receiving micro:bit should see the original message.

If you press button A, the receiving micro:bit should see the button A message instead.


Once your code works, see if you can expand it to also use button B.