whaleygeek / bitio

A micro:bit I/O device library for Python
Other
92 stars 31 forks source link

Added Radio Functionality #27

Closed jarvisteach closed 4 years ago

jarvisteach commented 4 years ago

Radio functionality I added a couple of years ago for a year 7 competition - pupils made micro:bit stopwatches as part of a "race to the line" day. The extension activity (which most completed) was to send their name and time from their micro:bit to a "central" micro:bit which, using bitio, would save the name and time to a file. These files were then being displayed on a web page on the projector. It made for quite an exciting lesson!

whaleygeek commented 4 years ago

Super thanks! I'll accept the PR, but might tweak it very slightly (you could pull it back to your fork after if you like) as there are one or two non-generic prints in there. But life is too short to learn how to cherrypick in git!!!

whaleygeek commented 4 years ago

Thanks @jarvisteach I have integrated the PR, and made a couple of tiny comment additions, as there is some thinking we need to do about the 'None' issue - this is a wider problem that the REPL of course returns the string None. We may have to parse the response, look for a quoted string or unquoted None and rewrite it to Python None, so that the example code can be a bit more idiomatic with empty payload checking.

Thanks for the contribution, it is great!