Skip to content

Instantly share code, notes, and snippets.

@MrDMurray
Created October 13, 2022 12:35
Show Gist options
  • Save MrDMurray/2e0c901b985387cba7c0f89df9e3816a to your computer and use it in GitHub Desktop.
Save MrDMurray/2e0c901b985387cba7c0f89df9e3816a to your computer and use it in GitHub Desktop.
# Imports go at the top
# Send Code
from microbit import *
import radio
radio.config(group=23)
radio.on()
while True:
if button_a.was_pressed():
radio.send('hello')
sleep(1)
"""
# Imports go at the top
# Receive Code
from microbit import *
import radio
radio.config(group=23)
radio.on()
while True:
message = radio.receive()
if message:
display.scroll(message)
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment