Skip to content

Instantly share code, notes, and snippets.

@rudrathegreat
Last active November 25, 2018 01:28
Show Gist options
  • Save rudrathegreat/04a7f2d3fed31fba4ab721ecd717f534 to your computer and use it in GitHub Desktop.
Save rudrathegreat/04a7f2d3fed31fba4ab721ecd717f534 to your computer and use it in GitHub Desktop.
A Program to Receive Stuff on the BBC Microbit
'''
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