Created
July 7, 2020 23:46
-
-
Save satoooon8888/52a14dc6f4dc0b3e1e13f5c30e7469f5 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
from microbit import * | |
import radio | |
def main(): | |
max_length = 251 | |
channel = 64 | |
radio.config(length=max_length, channel=channel) | |
display.show(Image.HAPPY) | |
radio.on() | |
while 1: | |
message = radio.receive() | |
if message: | |
display.scroll(message) | |
display.clear() | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment