Morse Code – Revisited using the BBC micro:bit

The Author

Technical Director (CTO)

Share this page

As mentioned last week, I have found a new way to provide a front end processor for my Pi, the BBC micro:bit. This week, I have started putting the new system through its paces: The microbit class in our GitHub repository has been beefed up to make it more resilient in the case where serial I/O is not initialised, or the MicroPython REPL is not running, and I have added a trivial Python program which can be used to intialise the REPL using the mu editor.

To test it all, I have revisited the Morse Code example, originally written to use GPIO support provided by Quick2Wire, to see if I could get it up and running with my new infrastructure. The micro:bit has a 5×5 LED display which makes the result a bit more impressive to look at:

[embedyt] https://www.youtube.com/watch?v=yfGsSLEifAs[/embedyt]

 

The new code is significantly simpler than the original, for a couple of reasons:

  1. Making calls to the micro:bit API via MicroPython is easier than using GPIO via a C library.
  2. Version 15.0 of Dyalog APL contains new system functions for working with text files, so we no longer need the “Files” library, we can just use the built-in ⎕NGET function to read the contents of a file.

Get Notified About New Posts

Enjoying our blog? Sign up to receive an email whenever we publish something new. No spam, just a single email when we publish a new blog post.

More Blog Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Morse Code – Revisited using the BBC micro:bit

Want to be notified about new blog posts?

Enjoying our blog? Sign up to receive an email whenever we publish something new. No spam, just a single email when there’s a new blog post available.

The Author

Technical Director (CTO)

Share this page

Morse Code – Revisited using the BBC micro:bit

Get Support