Last active
November 25, 2018 01:28
-
-
Save rudrathegreat/04a7f2d3fed31fba4ab721ecd717f534 to your computer and use it in GitHub Desktop.
A Program to Receive Stuff on the BBC Microbit
This file contains hidden or 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
''' | |
Only works on BBC Microbits. | |
The code was originally from | |
the repository Microbit Projects, | |
link below - | |
https://github.com/rudrathegreat/Microbit-Projects | |
''' | |
from microbit import * | |
import radio | |
radio.config(channel=76) | |
radio.on() | |
while True: | |
incoming = radio.receive() | |
if incoming = None: | |
display.show('-') | |
pass | |
else: | |
display.scroll(incoming) | |
print(incoming) # For Serial Communication with the Raspberry Pi (Or can be printed in the Shell which you are using toi program the BBC Microbit) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment