Created
October 13, 2022 12:35
-
-
Save MrDMurray/2e0c901b985387cba7c0f89df9e3816a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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