Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

micropython radio channel and MakeCode radio Group #669

Open
simonc8 opened this issue Sep 24, 2019 · 4 comments
Open

micropython radio channel and MakeCode radio Group #669

simonc8 opened this issue Sep 24, 2019 · 4 comments

Comments

@simonc8
Copy link

simonc8 commented Sep 24, 2019

I'm confused about how radio Group in MakeCode relates to radio channel in micropython. After numerous attempts I've failed to get any communication between one microbit programmed in micropython and another programmed in MakeCode. I see that micropython also has a setting for Group which adds to my confusion.

I'd appreciate if someone could clarify this.

(Can't see how to add labels to this post. Does someone else do this?)

@ukBaz
Copy link

ukBaz commented Sep 24, 2019

@simonc8 ,

MakeCode adds a little extra information in the radio packets.
I've written this up at: https://ukbaz.github.io/howto/ubit_radio.html

@rhubarbdog has written a class to help with communicating with the MakeCode Radio format:
https://github.com/rhubarbdog/microbit-radio

@simonc8
Copy link
Author

simonc8 commented Sep 25, 2019

Thanks for these links. I was never going to get it to work simply exporting a string from micropython and expecting the MakeCode microbit to understand it.
Still trying to make it work using make_radio, but at the moment I can't get the Mu editor to import make_radio.py from the same folder. It says "No module named make_radio".

@ukBaz
Copy link

ukBaz commented Sep 25, 2019

Your original issue has been answered so I'm not sure this the right place to continue this conversation.

You have not given enough information for me to guess what might be going wrong. I am assuming you are copying over the make_radio.py file to the micro:bit like shown on this page:
https://codewith.mu/en/tutorials/1.0/microbit

Another option is to copy and paste the make_radio class in to your main file.

There is also more information about modules at:
https://forum.micropython.org/viewtopic.php?t=4431

@rhubarbdog
Copy link
Contributor

You need to use file transfer to copy make_radio.py to your microbit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants