#MonthOfMaking Day 11

#MonthOfMaking Day 11

micromag

March 11, 2019

March is all about MAKING!!

I have decided to take on the challenge of making a 5-minute micro:bit make every day throughout March.

Day11 – Sending Messages

Today I am going to use the built-in radio feature on the micro:bit to send messages. Let’s get coding!

Python Code

from microbit import *
import radio
radio.on()
while True:
    if button_a.is_pressed():
        radio.send("Hello World")
    incoming = radio.receive()
    if incoming = "Hello World":
        display.scroll("Hello World")

EduBlocks Code

EduBlocks code

MakeCode Code

MakeCode

Demo

Final Words

Come back Tomorrow for another fun 5-minute micro:bit make